diff --git a/android/app/src/main/java/io/mosip/residentapp/MainActivity.java b/android/app/src/main/java/io/mosip/residentapp/MainActivity.java index 9add08ff5c..61304f517c 100644 --- a/android/app/src/main/java/io/mosip/residentapp/MainActivity.java +++ b/android/app/src/main/java/io/mosip/residentapp/MainActivity.java @@ -13,7 +13,6 @@ import com.facebook.react.ReactActivity; import com.facebook.react.ReactActivityDelegate; import com.facebook.react.ReactRootView; -import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; import expo.modules.ReactActivityDelegateWrapper; /** @@ -109,17 +108,4 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis } recreate(); } - - @Override - protected ReactActivityDelegate createReactActivityDelegate() { - return new ReactActivityDelegateWrapper( - this, - new ReactActivityDelegate(this, getMainComponentName()) { - @Override - protected ReactRootView createRootView() { - return new RNGestureHandlerEnabledRootView(MainActivity.this); - } - } - ); - } } diff --git a/android/build.gradle b/android/build.gradle index 423b7179db..966edbdd8d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -4,8 +4,8 @@ buildscript { ext { buildToolsVersion = "29.0.3" minSdkVersion = 23 - compileSdkVersion = 31 - targetSdkVersion = 31 + compileSdkVersion = 33 + targetSdkVersion = 33 } repositories { google() diff --git a/package-lock.json b/package-lock.json index 24efc5471b..38f1780e6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -58,7 +58,7 @@ "react-native-dotenv": "^3.3.1", "react-native-elements": "3.4.2", "react-native-fs": "^2.20.0", - "react-native-gesture-handler": "~2.1.0", + "react-native-gesture-handler": "2.5.0", "react-native-keychain": "^8.0.0", "react-native-linear-gradient": "^2.6.2", "react-native-location-enabler": "^4.1.0", @@ -21622,15 +21622,19 @@ } }, "node_modules/react-native-gesture-handler": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-2.1.3.tgz", - "integrity": "sha512-y5W2MVB+J6vjIT/mUidDv0BqVRbWXn0cP7R2o6fsSYsHh9M0btT979+bCI7nPuhmRHjkhg5xCm4HNMIH0IQO4w==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-2.5.0.tgz", + "integrity": "sha512-djZdcprFf08PZC332D+AeG5wcGeAPhzfCJtB3otUgOgTlvjVXmg/SLFdPJSpzLBqkRAmrC77tM79QgKbuLxkfw==", "dependencies": { "@egjs/hammerjs": "^2.0.17", "hoist-non-react-statics": "^3.3.0", "invariant": "^2.2.4", "lodash": "^4.17.21", "prop-types": "^15.7.2" + }, + "peerDependencies": { + "react": "*", + "react-native": "*" } }, "node_modules/react-native-keychain": { @@ -45500,9 +45504,9 @@ } }, "react-native-gesture-handler": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-2.1.3.tgz", - "integrity": "sha512-y5W2MVB+J6vjIT/mUidDv0BqVRbWXn0cP7R2o6fsSYsHh9M0btT979+bCI7nPuhmRHjkhg5xCm4HNMIH0IQO4w==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-2.5.0.tgz", + "integrity": "sha512-djZdcprFf08PZC332D+AeG5wcGeAPhzfCJtB3otUgOgTlvjVXmg/SLFdPJSpzLBqkRAmrC77tM79QgKbuLxkfw==", "requires": { "@egjs/hammerjs": "^2.0.17", "hoist-non-react-statics": "^3.3.0", diff --git a/package.json b/package.json index a06d74c882..e4362dc09a 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "react-native-dotenv": "^3.3.1", "react-native-elements": "3.4.2", "react-native-fs": "^2.20.0", - "react-native-gesture-handler": "~2.1.0", + "react-native-gesture-handler": "2.5.0", "react-native-keychain": "^8.0.0", "react-native-linear-gradient": "^2.6.2", "react-native-location-enabler": "^4.1.0",