title: React Native Release APK only Android Crash
body: <p>My apk-debug works fine!</p>
  
  <p>Build apk-release works fine!</p>
  
  <p>When I install to device the app crash and start with this issue:</p>
  
  <p>adb logcat</p>
  
  <pre><code>E AndroidRuntime: Process: br.com.missionbrasil, PID: 10382
  E AndroidRuntime: java.lang.RuntimeException: com.facebook.react.devsupport.JSException: Strict mode does not allow function declarations in a lexically nested statement. (index.android.bundle:4)
  E AndroidRuntime:   at com.facebook.react.bridge.DefaultNativeModuleCallExceptionHandler.handleException(DefaultNativeModuleCallExceptionHandler.java:24)
  E AndroidRuntime:   at com.facebook.react.devsupport.DisabledDevSupportManager.handleException(DisabledDevSupportManager.java:172)
  E AndroidRuntime:   ... 7 more
  W ActivityManager:   Force finishing activity br.com.missionbrasil/.MainActivity
  </code></pre>
  
  <p>I change all conditions => <code>{ vars &amp;&amp; (&lt;View&gt;&lt;/View&gt;) } to { vars ?: }</code></p>
  
  <p>Clean ./gradlew 100 times...</p>
  
  <p>package.json</p>
  
  <pre><code>"dependencies": {
      "@expo/react-native-fade-in-image": "^1.1.1",
      "@expo/react-native-touchable-native-feedback-safe": "^1.1.2",
      "autobind-decorator": "^1.3.4",
      "babel-core": "^6.26.0",
      "babel-plugin-transform-decorators-legacy": "^1.3.4",
      "react": "16.0.0",
      "react-addons-update": "^15.6.2",
      "react-native": "^0.51.0",
      "react-native-image-crop-picker": "^0.19.1",
      "redux": "^3.7.2",
      "redux-thunk": "^2.2.0"
    },
    "devDependencies": {
      "babel-jest": "21.2.0",
      "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
      "babel-plugin-transform-export-extensions": "^6.22.0",
      "babel-preset-react-native": "4.0.0",
      "jest": "21.2.1"
    },
    "jest": {
      "preset": "react-native"
    }
  </code></pre>
  
  <p>Anyone have this same issue?</p>
  
  <p>Regards.</p>