美文网首页react-native-导航
React_Native的问题整理

React_Native的问题整理

作者: taijielan | 来源:发表于2019-04-29 11:27 被阅读0次
    ReactNative中 出现Error type 3 Error: Activit class does not exist.?

    修改.../qms-admin-app/node_modules/react-native/local-cli/runAndroid/runAndroid.js
    中的

    image.png
    可以用adb 命令:
    adb shell am start -n com.smc.hdproject.evergrande.a/com.evergrande.smc.ui.SplashActivity
    com.smc.hdproject.evergrande.a:为包名。
    com.evergrande.smc.ui.SplashActivity:为默认启动的activity的路径。
    别将这俩个混为一个,因为在项目gradle文件中可以修改属性applicationId 可以更改包名。
    可以用 adb shell dumpsys window命令查看当前应用的页面情况
    针对react-native-screens 中项目引用的react-native不是最新的问题,导致某些module找不到

    方法一:升级react-native 版本
    方法二: 修改"react-native-router-flux": "git+http://192.168.66.29:8082/material/react-native-router-flux.git",
    版本。

    [react-native-router-flux] unique key should not be defined

    解决:

    image.png
    Modal添加key

    相关文章

      网友评论

        本文标题:React_Native的问题整理

        本文链接:https://www.haomeiwen.com/subject/fctynqtx.html