title: Pure React Native app crashes on swiping after opening it in Release mode
body: <p>I am using <strong>React-Navigation</strong> for my pure <strong>RN 0.61.2</strong> app. The app runs perfectly when I use it on Debug mode. However, in Release mode when I try to open the <strong>Drawer Navigation</strong> menu or scroll down in a <strong>Tab</strong> menu, the app crashes immediately.</p>
  
  <p>Dependencies:</p>
  
  <pre><code>...
    "dependencies": {
      "@react-native-community/async-storage": "^1.6.2",
      "@react-native-community/netinfo": "^4.4.0",
      "@react-native-community/slider": "^2.0.2",
      "react": "16.9.0",
      "react-native": "0.61.2",
      "react-native-admob": "^2.0.0-beta.6",
      "react-native-gesture-handler": "^1.4.1",
      "react-native-reanimated": "^1.3.0",
      "react-native-screens": "1.0.0-alpha.23",
      "react-native-vector-icons": "^6.6.0",
      "react-navigation": "^4.0.10",
      "react-navigation-drawer": "^2.2.2",
      "react-navigation-stack": "^1.9.3",
      "react-navigation-tabs": "^2.5.5"
    },
  ...
  </code></pre>
  
  <p>I've already added these lines of code to <code>android/app/build.gradle</code>'s dependencies:</p>
  
  <pre><code>    implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
      implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02'
  </code></pre>
  
  <p>In App.js, I tried</p>
  
  <pre><code>import {enableScreens} from 'react-native-screen';
  enableScreens();
  </code></pre>
  
  <p>and also</p>
  
  <pre><code>import {useScreens} from 'react-native-screen';
  useScreens();
  </code></pre>
  
  <p>with <code>2.0.0-alpha.1</code>, <code>2.0.0-alpha.3</code> and <code>1.0.0-alpha.23</code> versions of <code>react-native-screens</code>.</p>
  
  <p>Yet, still I am getting the same result: Debug mode is perfectly working, Release mode is dramatically crashing after a Drawer Navigation swipe or a Tab Navigation scroll.</p>
  
  <hr>
  
  <p><strong>THE SOLUTION</strong>
  I used <code>adb logcat</code> and saw this:</p>
  
  <pre><code>ReactNativeJS: Invariant Violation: Unsupported top level event type "onGestureHandlerStateChange" dispatched
  </code></pre>
  
  <p>I googled it and found that some guys have fixed it by importing 'react-native-gesture-handler' on the top of the 'app.js' file. So I've added:</p>
  
  <pre><code>import 'react-native-gesture-handler'
  </code></pre>
  
  <p>and it is working perfectly now!</p>