@duffel/react-native-components-ancillaries
UI components to support selling travel with the Duffel API in your react native app.
Installation
yarn add @duffel/react-native-components
Usage
import { DuffelAncillaries } from '@duffel/react-native-components-ancillaries';
function App() {
return (
<DuffelAncillaries
offer_id="fixture_off_1"
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