- Clone the repository:
git clone https://github.com/software-mansion/react-native-gesture-handler
cd react-native-gesture-handler
- Install node_modules in project root directory:
yarn
- Install node_modules in
MacOSExample/
directory:
cd MacOSExample
yarn
- Install Pods in
MacOSExample/macos/
directory:
cd macos
pod install
- Start Metro bundler in
MacOSExample/
directory
cd ..
yarn start
You can either open the workspace in Xcode and launch the app from there:
open macos/MacOSExample.xcworkspace
or build and run directly from the command line:
yarn react-native run-macos
If you have trouble with building the app, try running
rm -rf Pods Podfile.lock build
in macos/
directory.