@fiteo/react-native-outfit-carousel
v1.0.0
Published
Fiteo's Outfit Carousel component for React Native
Downloads
1
Readme
Outfit Carousel
Installation
yarn add @fiteo/react-native-outfit-carousel
Usage
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
example
project):
yarn setup
- Compile the library with hot reload:
yarn dev
- Running
example
app:
yarn start-ex
Publishing
(TBD)
Testing
Using Jest to test with code coverage:
yarn test
License
MIT