React_Native的问题整理

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。