启动时释放APK崩溃-React Native

Gan*_*uda 3 android apk react-native

我对React Native Release APK有问题。

该应用程序在调试模式下运行,但在发布模式下立即崩溃

从logcat得到了这些消息,可能是导致此问题的原因

Module AppRegistry is not a registered callable module (calling unmountApplicationComponentAtRootTag) 
11-01 08:28:24.531  6644  6662 E ReactNativeJS: undefined is not an object (evaluating 'd.View.propTypes.style')
11-01 08:28:24.534  6644  6662 E ReactNativeJS: Module AppRegistry is not a registered callable module (calling runApplication)
Run Code Online (Sandbox Code Playgroud)

这是我的包裹:

  {
  "name": "jbw",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "color": "^2.0.0",
    "intl": "^1.2.5",
    "native-base": "^2.3.3",
    "prop-types": "^15.6.0",
    "react": "16.0.0-beta.5",
    "react-native": "0.49.3",
    "react-native-fontawesome": "^5.7.0",
    "react-native-keyboard-aware-scroll-view": "^0.4.1",
    "react-native-linear-gradient": "^2.3.0",
    "react-native-loading-spinner-overlay": "^0.5.2",
    "react-native-masked-text": "^1.6.2",
    "react-native-modal": "^4.1.1",
    "react-native-popup-dialog": "^0.9.38",
    "react-native-super-grid": "^1.0.4",
    "react-native-vector-icons": "^4.4.2",
    "react-navigation": "^1.0.0-beta.15"
  },
  "devDependencies": {
    "babel-jest": "21.2.0",
    "babel-preset-react-native": "4.0.0",
    "jest": "21.2.1",
    "react-test-renderer": "16.0.0-beta.5"
  },
  "jest": {
    "preset": "react-native"
  }
}
Run Code Online (Sandbox Code Playgroud)

Gan*_*uda 5

有问题,是由

View.PropTypes 
Run Code Online (Sandbox Code Playgroud)

在0.49弃用的版本应移至

import { ViewPropTypes } from 'react-native';
Run Code Online (Sandbox Code Playgroud)