3.0.0 • Published 1 month ago
@frknltrk/react-native-swipeable-deck v3.0.0
React Native Swipeable Deck
React Native Swipeable Deck is a customizable swipeable card deck component for React Native applications. It allows you to create interactive card decks with swipe gestures, customizable animations, and more.
Features
- Swipe left and right actions for navigating through cards.
- Supports dynamic card content.
- Easily integrate swipeable card decks into your React Native projects.
- Responsive design for various screen sizes.
Usage
In order to add the package/module to your project:
# Using yarn
yarn add @frknltrk/react-native-swipeable-deck
# Using npm
npm install @frknltrk/react-native-swipeable-deck
Contribution
Example
You can find a usage example in the example folder of this repository. To run the example on the web, follow these steps:
# clone
git clone https://github.com/frknltrk/react-native-swipeable-deck.git
# install (set up)
yarn install
# run
yarn example start --web
Upgrade Dependencies
Perform the steps twice: in the root dir (/) for the package itself and in the (/example) for the example app.
$ yarn outdated
$ yarn upgrade xxx@latest # with @latest it checks according to npm repo; otherwise package.json
# retest the package
# proceed to the next dep.
# OR just
# yarn upgrade --latest # to upgrade all packages at once
$ yarn install # final step
TO DO
- clamp (done)
- trigger animations through buttons
- prop: isBackDisabled & isReversed