0.2.10 • Published 4 months ago

duffel-components-react-native v0.2.10

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

duffel-components-react-native

A react-native component library for Duffel components

Installation

npm install duffel-components-react-native

Usage

import { BaggageSelectionCard } from 'duffel-components-react-native';
import { Offer, Passenger } from 'duffel-components-react-native/lib/typescript/src/duffelTypes';
import { SelectedService} from 'duffel-components-react-native/lib/typescript/src/types';
function BaggageSelection({
    offer, 
    passengers
}:{
    offer: Offer;
    passengers: Passenger[];
}) {
    const [services, setServices] = useState<SelectedService[]>([]);
    return (
        <>
            <BaggageSelectionCard
                lng="fr"
                offer={offer}
                passengers={passengers}
                selectedBaggageServices={services}
                setSelectedBaggageServices={setServices}
            />
        </>
    );
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.2.10

4 months ago

0.2.9

4 months ago

0.2.7

4 months ago

0.2.6

4 months ago

0.2.8

4 months ago

0.2.5

4 months ago

0.2.4

4 months ago

0.2.3

5 months ago

0.2.2

5 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.1.19

5 months ago

0.1.16

5 months ago

0.1.17

5 months ago

0.1.18

5 months ago

0.1.15

5 months ago

0.1.14

5 months ago

0.1.12

5 months ago

0.1.11

5 months ago

0.1.10

5 months ago

0.1.9

5 months ago

0.1.8

5 months ago

0.1.7

5 months ago

0.1.6

5 months ago

0.1.5

5 months ago

0.1.4

5 months ago

0.1.3

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago