title: React Native release build crash issue, but on debug it is working fine
body: <p>I am facing the release build crash issue on iOS and getting the below error:</p>
  <pre><code>[error][tid:com.facebook.react.JavaScript] ReferenceError: Can't find variable: typeAnnotation
  2020-12-31 01:16:15.086 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: ReferenceError: Can't find variable: typeAnnotation
  2020-12-31 01:16:15.125896+0530 EPG[11841:95064] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: ReferenceError: Can't find variable: typeAnnotation', reason: 'Unhandled JS Exception: ReferenceError: Can't find variable: typeAnnotation, stack:
  &lt;unknown&gt;@1064:17089
  v@2:1474
  &lt;unknown&gt;@1063:426
  v@2:1474
  &lt;unknown&gt;@1062:340
  v@2:1474
  &lt;unknown&gt;@1055:6339
  v@2:1474
  &lt;unknown&gt;@1054:156
  v@2:1474
  &lt;unknown&gt;@1053:229
  v@2:1474
  &lt;unknown&gt;@1051:167
  v@2:1474
  &lt;unknown&gt;@847:284
  v@2:1474
  &lt;unknown&gt;@846:211
  v@2:1474
  &lt;unknown&gt;@442:454
  v@2:1474
  &lt;unknown&gt;@413:400
  v@2:1474
  &lt;unknown&gt;@412:138
  v@2:1474
  &lt;unknown&gt;@6:61
  v@2:1474
  d@2:876
  global code@1935:4
  '
  *** First throw call stack:
  (
      0   CoreFoundation                      0x00000001108b0e6e __exceptionPreprocess + 350
      1   libobjc.A.dylib                     0x000000010fb779b2 objc_exception_throw + 48
      2   EPG                                 0x000000010a3f6f05 RCTFormatError + 0
      3   EPG                                 0x000000010a46c11c -[RCTExceptionsManager reportFatalException:stack:exceptionId:] + 508
      4   CoreFoundation                      0x00000001108b7dec __invoking___ + 140
      5   CoreFoundation                      0x00000001108b4fd1 -[NSInvocation invoke] + 321
      6   CoreFoundation                      0x00000001108b52a4 -[NSInvocation invokeWithTarget:] + 68
      7   EPG                                 0x000000010a42ab0a -[RCTModuleMethod invokeWithBridge:module:arguments:] + 578
      8   EPG                                 0x000000010a42cd94 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 246
      9   EPG                                 0x000000010a42cb1c ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 78
      10  libdispatch.dylib                   0x00000001139daf11 _dispatch_call_block_and_release + 12
      11  libdispatch.dylib                   0x00000001139dbe8e _dispatch_client_callout + 8
      12  libdispatch.dylib                   0x00000001139e26fd _dispatch_lane_serial_drain + 788
      13  libdispatch.dylib                   0x00000001139e328f _dispatch_lane_invoke + 422
      14  libdispatch.dylib                   0x00000001139eeb65 _dispatch_workloop_worker_thread + 719
      15  libsystem_pthread.dylib             0x00007fff52301a3d _pthread_wqthread + 290
      16  libsystem_pthread.dylib             0x00007fff52300b77 start_wqthread + 15
  )
  libc++abi.dylib: terminating with uncaught exception of type NSException
  </code></pre>
  <p>Do any one has idea that what might cause and issue like this, i am having the version of react-native as &quot;react-native&quot;: &quot;^0.61.2&quot; and my package. json looks like:</p>
  <pre><code>{
    &quot;name&quot;: &quot;My App&quot;,
    &quot;version&quot;: &quot;0.0.1&quot;,
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      &quot;android&quot;: &quot;cd ./android &amp;&amp; ./gradlew app:assembleDebug &amp;&amp; ./gradlew installDebug&quot;,
      &quot;ios&quot;: &quot;react-native run-ios&quot;,
      &quot;start&quot;: &quot;react-native start&quot;,
      &quot;test&quot;: &quot;jest&quot;,
      &quot;lint&quot;: &quot;eslint .&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@react-native-community/async-storage&quot;: &quot;1.8.1&quot;,
      &quot;@react-native-community/datetimepicker&quot;: &quot;3.0.8&quot;,
      &quot;@react-native-community/push-notification-ios&quot;: &quot;1.1.0&quot;,
      &quot;@react-native-firebase/analytics&quot;: &quot;6.7.1&quot;,
      &quot;@react-native-firebase/app&quot;: &quot;6.7.1&quot;,
      &quot;@react-native-firebase/messaging&quot;: &quot;6.7.1&quot;,
      &quot;base64url&quot;: &quot;3.0.1&quot;,
      &quot;i18n-js&quot;: &quot;3.5.1&quot;,
      &quot;lodash&quot;: &quot;4.17.15&quot;,
      &quot;moment&quot;: &quot;2.24.0&quot;,
      &quot;native-base&quot;: &quot;2.13.12&quot;,
      &quot;react&quot;: &quot;16.9.0&quot;,
      &quot;react-native&quot;: &quot;^0.61.2&quot;,
      &quot;react-native-camera&quot;: &quot;3.21.0&quot;,
      &quot;react-native-collapsible&quot;: &quot;1.5.2&quot;,
      &quot;react-native-color-picker&quot;: &quot;0.6.0&quot;,
      &quot;react-native-config&quot;: &quot;0.12.0&quot;,
      &quot;react-native-dash&quot;: &quot;0.0.11&quot;,
      &quot;react-native-document-picker&quot;: &quot;3.3.2&quot;,
      &quot;react-native-easy-grid&quot;: &quot;0.2.2&quot;,
      &quot;react-native-geocoding&quot;: &quot;0.4.0&quot;,
      &quot;react-native-image-picker&quot;: &quot;1.1.0&quot;,
      &quot;react-native-image-resizer&quot;: &quot;1.2.1&quot;,
      &quot;react-native-keyboard-aware-scrollview&quot;: &quot;2.1.0&quot;,
      &quot;react-native-linear-gradient&quot;: &quot;2.5.6&quot;,
      &quot;react-native-localize&quot;: &quot;1.3.4&quot;,
      &quot;react-native-maps&quot;: &quot;0.26.1&quot;,
      &quot;react-native-navigation&quot;: &quot;3.7.0&quot;,
      &quot;react-native-open-maps&quot;: &quot;0.3.5&quot;,
      &quot;react-native-pdf&quot;: &quot;6.1.0&quot;,
      &quot;react-native-picker-select&quot;: &quot;6.6.0&quot;,
      &quot;react-native-print&quot;: &quot;0.6.0&quot;,
      &quot;react-native-push-notification&quot;: &quot;3.1.9&quot;,
      &quot;react-native-ratings&quot;: &quot;6.5.0&quot;,
      &quot;react-native-restart&quot;: &quot;0.0.13&quot;,
      &quot;react-native-share&quot;: &quot;3.1.2&quot;,
      &quot;react-native-ssl-pinning&quot;: &quot;1.4.5&quot;,
      &quot;react-native-tag-input&quot;: &quot;0.0.21&quot;,
      &quot;react-native-webview&quot;: &quot;7.6.0&quot;,
      &quot;react-redux&quot;: &quot;7.2.0&quot;,
      &quot;redux&quot;: &quot;4.0.5&quot;,
      &quot;redux-thunk&quot;: &quot;2.3.0&quot;,
      &quot;rn-fetch-blob&quot;: &quot;0.12.0&quot;,
      &quot;rn-secure-storage&quot;: &quot;2.0.4&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;7.9.0&quot;,
      &quot;@babel/runtime&quot;: &quot;7.12.5&quot;,
      &quot;@react-native-community/eslint-config&quot;: &quot;0.0.5&quot;,
      &quot;babel-jest&quot;: &quot;24.9.0&quot;,
      &quot;eslint&quot;: &quot;6.8.0&quot;,
      &quot;jest&quot;: &quot;24.9.0&quot;,
      &quot;metro-react-native-babel-preset&quot;: &quot;0.56.4&quot;,
      &quot;react-test-renderer&quot;: &quot;16.9.0&quot;
    },
    &quot;jest&quot;: {
      &quot;preset&quot;: &quot;react-native&quot;
    }
  }
  
  </code></pre>
  <p>I already tried it by uninstalling the node_modules and doing the pod install many times, but not having getting it fixed with any solution.</p>
  <p>Help will be highly appreciated. Thanks in advance.</p>