Skip to content

Commit 3e43871

Browse files
committed
added RN gesture handler
1 parent 9158d24 commit 3e43871

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

android/app/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ android {
138138
}
139139

140140
dependencies {
141+
implementation project(':react-native-gesture-handler')
141142
implementation project(':react-native-reanimated')
142143
implementation fileTree(dir: "libs", include: ["*.jar"])
143144
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"

android/app/src/main/java/com/rnstarterkit/MainApplication.java

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import android.app.Application;
44

55
import com.facebook.react.ReactApplication;
6+
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
67
import com.swmansion.reanimated.ReanimatedPackage;
78
import com.facebook.react.ReactNativeHost;
89
import com.facebook.react.ReactPackage;
@@ -24,6 +25,7 @@ public boolean getUseDeveloperSupport() {
2425
protected List<ReactPackage> getPackages() {
2526
return Arrays.<ReactPackage>asList(
2627
new MainReactPackage(),
28+
new RNGestureHandlerPackage(),
2729
new ReanimatedPackage()
2830
);
2931
}

android/settings.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
rootProject.name = 'RNStarterKit'
2+
include ':react-native-gesture-handler'
3+
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android')
24
include ':react-native-reanimated'
35
project(':react-native-reanimated').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-reanimated/android')
46

ios/Podfile

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ target 'RNStarterKit' do
2727
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
2828
########
2929

30+
pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'
31+
3032
end
3133

3234
# Multiple commands produce error when building with new Xcode build system

0 commit comments

Comments
 (0)