UI component to support selling ancillaries with the Duffel API in your React Native app.
npm install @duffel/react-native-components-ancillariesUI components to support selling travel with the Duffel API in your react native app.
``sh`
yarn add @duffel/react-native-components-ancillaries
`tsx
import { DuffelAncillaries } from '@duffel/react-native-components-ancillaries';
function App() {
return (
services={['bags', 'seats']}
passengers={[
{
id: 'pas_0000AUde3KY1SptM6ABSfU',
given_name: 'Mae',
family_name: 'Jemison',
gender: 'f',
title: 'dr',
born_on: '1956-10-17',
email: 'm.jemison@nasa.gov',
phone_number: '+16177562626',
},
]}
onPayloadReady={console.log}
theme={DARK_THEME}
/>
);
}
``
> For documentation and help integrating with this component please contact help@duffel.com