React Native ScrollView Crashes on Android APK

Ahm*_*mam 11 android release scrollview apk react-native

My app is working as expected in the debug mode

react-native run-android
Run Code Online (Sandbox Code Playgroud)

but in the release build

react-native run-android --variant=release 
Run Code Online (Sandbox Code Playgroud)

The app launches fine and I can navigate to all the pages, but whenever I try to scroll or press any view inside a ScrollView, it crashes. For example, in the code below, the HomeHeader component has two buttons that work well, but whenever I touch anything inside the ScrollView, Unfortunately it crashes. My code is as follow:

<SafeAreaView style={{flex:1}}>
  <HomeHeader/>
  <ScrollView>
      <SomeComponents/>
  </ScrollView>
</SafeAreaView>
Run Code Online (Sandbox Code Playgroud)

Dependencies

"react-native": "^0.58.5",
"react-native-gesture-handler": "^1.0.10"
Run Code Online (Sandbox Code Playgroud)

Error Log

Unsupported top level event type "onGestureHandlerStateChange" dispatched 03-20 21:42:49.156 21328 21372 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules 03-20 21:42:49.156 21328 21372 E AndroidRuntime: Process: com.munasabat, PID: 21328 03-20 21:42:49.156 21328 21372 E AndroidRuntime: com.facebook.react.common.JavascriptException: Unsupported top level event type "onGestureHandlerStateChange" dispatched, stack:

Jon*_*win 4

Android在版本<= 1.0.14(的react-native-gesture-handler)中发现了一个错误,该错误在 中已修复1.0.15,但在以后的版本中也存在相同的问题IOS使用(尽可能
使用最新版本):

 "react-native": "^0.58.0"
 "react-native-gesture-handler" "^1.1.0"
 "react-navigation": "^3.0.9"
Run Code Online (Sandbox Code Playgroud)