UI components to support selling travel with the Duffel API
npm install @duffel/react-native-componentsA suite of UI components to enable you to sell and manage travel with the Duffel API in your React Native app.
This package provides the following components:
- Ancillaries - Allow customers to add bags, seats, and other extras to their bookings
- Assistant - Travel assistant to help users work through booking management and connect with customer support
- Card Form - Secure card input form
- 3D Secure Provider - Handle 3DS authentication flows
``sh`
npm install @duffel/react-native-components
This package requires the following peer dependencies to be installed in your project:
`sh`
npm install @duffel/api @evervault/react-native @react-native-picker/picker react-native-mask-input react-native-picker-select react-native-svg react-native-webview
For iOS, install the native dependencies:
`sh`
npx pod-install
If you only need specific functionality, consider using our standalone packages for a smaller bundle size and reduced dependencies:
- @duffel/react-native-components-ancillaries
- @duffel/react-native-components-assistant`
- Assistant
- Ancillaries
- Ancillaries component customisation
- 3DS hook
- Card form