53 lines
2.2 KiB
Markdown
53 lines
2.2 KiB
Markdown
<p align="center">
|
|
<h1 align="center">React Native Gesture Handler</h1>
|
|
<h3 align="center">Declarative API exposing platform native touch and gesture system to React Native.</h3>
|
|
</p>
|
|
|
|
React Native Gesture Handler provides native-driven gesture management APIs for building best possible touch-based experiences in React Native.
|
|
|
|
With this library gestures are no longer controlled by the JS responder system, but instead are recognized and tracked in the UI thread.
|
|
It makes touch interactions and gesture tracking not only smooth, but also dependable and deterministic.
|
|
|
|
## Installation
|
|
|
|
Check [getting started](https://docs.swmansion.com/react-native-gesture-handler/docs/#installation) section of our docs for the detailed installation instructions.
|
|
|
|
## Documentation
|
|
|
|
Check out our dedicated documentation page for info about this library, API reference and more: [https://docs.swmansion.com/react-native-gesture-handler/docs/](https://docs.swmansion.com/react-native-gesture-handler/docs/)
|
|
|
|
## Examples
|
|
|
|
If you want to play with the API but don't feel like trying it on a real app, you can run the example project. Clone the repo, go to the `Example/` folder and run:
|
|
|
|
```bash
|
|
yarn install
|
|
```
|
|
|
|
If you are running on ios, run `pod install` in the ios folder
|
|
|
|
Run `yarn start` to start the metro bundler
|
|
|
|
Run `react-native run-android` or `react-native run-ios` (depending on which platform you want to run the example app on).
|
|
|
|
You will need to have an Android or iOS device or emulator connected as well as `react-native-cli` package installed globally.
|
|
|
|
## React native Support
|
|
|
|
| version | react-native version |
|
|
| ------- | -------------------- |
|
|
| 1.4.0+ | 0.60.0+ |
|
|
| 1.1.0+ | 0.57.2+ |
|
|
| <1.1.0 | 0.50.0+ |
|
|
|
|
## License
|
|
|
|
Gesture handler library is licensed under [The MIT License](LICENSE).
|
|
|
|
## Credits
|
|
|
|
This project is supported by amazing people from [Expo.io](https://expo.io) and [Software Mansion](https://swmansion.com)
|
|
|
|
[](https://expo.io)
|
|
[](https://swmansion.com)
|