@duffel/react-native-components
v7.0.2
Published
UI components to support selling travel with the Duffel API
Readme
@duffel/react-native-components
End of life
@duffel/react-native-components is end of life. Version 7.0.2 is the final version of this package and no new features will be added here.
This package previously bundled Card Form, 3DS, Ancillaries, and Assistant APIs. Those surfaces now live in dedicated packages so you can install only what you use and avoid unrelated native peer dependencies.
Use these packages instead:
@duffel/react-native-components-card-formforDuffelCardForm,useDuffelCardFormActions,DuffelThreeDSecureProvider, anduseCreate3DSecureSession@duffel/react-native-components-ancillariesforDuffelAncillaries@duffel/react-native-components-assistantforDuffelAssistant
Migration
Replace imports from the umbrella package with the dedicated package for the API you use.
// Before
import {
DuffelCardForm,
DuffelThreeDSecureProvider,
} from '@duffel/react-native-components';
// After
import {
DuffelCardForm,
DuffelThreeDSecureProvider,
} from '@duffel/react-native-components-card-form';// Before
import { DuffelAncillaries } from '@duffel/react-native-components';
// After
import { DuffelAncillaries } from '@duffel/react-native-components-ancillaries';// Before
import { DuffelAssistant } from '@duffel/react-native-components';
// After
import { DuffelAssistant } from '@duffel/react-native-components-assistant';For new integrations, do not install @duffel/react-native-components. Install the dedicated package instead and add its peer dependencies to your app.
