Example app code is located under
Example/ folder in the repo.
It showcases the majority of the Gesture Handler library features.
The app consist of the list of single screen examples presenting the capabilities of the library.
Each example is located under a separate folder under
Running example app on Expo
You can run example app on Expo. Follow instructions under this link to do so. Note that the app published to Expo is not the most up to date version. We publish updates whenever new version of Expo SDK is released. If you wish to try the most up to date version you will have to run example app locally. For that see below 👇
Running example app locally
Before you begin you should follow React Native's setup steps to make sure you have all the tools necessary to build and run React Native apps installed. The example app is a regular React Native app, so in case of problems or to learn about available commands you may want to check create-react-native-app documentation.
In order to run example app you need to clone the repo first:
git clone firstname.lastname@example.org:kmagiera/react-native-gesture-handler.git
Then go to the library folder:
Install dependencies of library with the following command:
Then go to the
Install dependencies of example with the following command:
Run development server:
Finally run one of the commands below in order to build, install and launch the app on Android:
or on iOS:
You will need to have an Android or iOS device or emulator connected and
react-native-cli package installed globally.