@fiteo/react-native-outfit-carousel
v1.0.0
Published
Fiteo's Outfit Carousel component for React Native
Readme
Outfit Carousel
Installation
yarn add @fiteo/react-native-outfit-carouselUsage
import { FiteoOutfitCarousel } from '@fiteo/react-native-outfit-carousel';
//...
<FiteoOutfitCarousel
query={{ page: 1, perPage: 3, tag: ['coffee date'] }}
apiKey={'123123'}
onItemTap={(item: FiteoOutfit) => {}}
/>
//...| Props | Type | Description | | ------------- | ------------- |------------- | | query | Object | Following this doc https://fiteo.thesweetsuite.net:15803/swagger/#/Outfits/get_outfits_search | | apiKey | String | Provided by Fiteo | | onItemTap | Function | Callback function that triggered when an outfit item is tapped |
Development
- Install project dependencies (including
exampleproject):
yarn setup- Compile the library with hot reload:
yarn dev- Running
exampleapp:
yarn start-exPublishing
(TBD)Testing
Using Jest to test with code coverage:
yarn testLicense
MIT
