Skip to content

Commit b2d23f1

Browse files
authored
[Android] Remove old Reanimated check (#4431)
## Description Removes stale check for Reanimated 2.3.x, leaving only 3.x+ ## Test plan Build basic-example
1 parent 0d4b34f commit b2d23f1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎packages/react-native-gesture-handler/android/build.gradle‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def getExternalLibVersion(project){
9494
return [Integer.parseInt(major), Integer.parseInt(minor), Integer.parseInt(patchVersion), isPrerelease]
9595
}
9696

97-
// Check whether Reanimated 2.3 or higher is installed alongside Gesture Handler
9897
def shouldUseCommonInterfaceFromReanimated() {
9998
def reanimated = rootProject.subprojects.find { it.name == 'react-native-reanimated' }
10099

@@ -104,7 +103,7 @@ def shouldUseCommonInterfaceFromReanimated() {
104103

105104
def (major, minor, patch) = getExternalLibVersion(reanimated)
106105

107-
return (major == 2 && minor >= 3) || major >= 3
106+
return major >= 3
108107
}
109108

110109
def shouldUseCommonInterfaceFromRNSVG() {

0 commit comments

Comments
 (0)