0.2.10 • Published 1 year ago

duffel-components-react-native v0.2.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.2.9

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.8

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.19

1 year ago

0.1.16

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago