我在开发环境 react-native
应用程序中正常工作。我想测试它的性能并发布了一个版本,但在发布后崩溃了。
01-09 20:16:13.644 23215 23251 E ReactNativeJS: Object type 't' not found in schema.
01-09 20:16:13.648 23215 23251 E ReactNativeJS: Module AppRegistry is not a registered callable module (calling runApplication)
由于来源的缩小和丑化,我无法确定崩溃的原因。你能帮我禁用它吗,因为我已经花了很多时间在它上面。
react-native 版本:0.49.5
最佳答案
在 android/app/build.gradle 的 extraPackagerArgs 中设置 --minify=false 应该可以完成这项工作。
project.ext.react = [
entryFile: "index.js",
extraPackagerArgs: [ '--minify=false' ],
];
关于android - 在 android 的 react-native 发布版本中禁用缩小和 uglify,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48184447/