@duffel/react-native-components-ancillaries
v0.1.5
Published
Component for ancillaries selection in React Native
Readme
@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-ancillariesUsage
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: '[email protected]',
phone_number: '+16177562626',
},
]}
onPayloadReady={console.log}
theme={DARK_THEME}
/>
);
}For documentation and help integrating with this component please contact [email protected]
