react native 坑
发布时间:2020-12-15 07:27:55 所属栏目:百科 来源:网络整理
导读:Could not get BatchedBridge,make sure your bundle is packaged correctly 在终端中,进入到项目的根目录,执行下面这段命令行: react - native bundle - - platform android - - dev false - - entry - file index . android . js - - bundle - output a
Could not get BatchedBridge,make sure your bundle is packaged correctly在终端中,进入到项目的根目录,执行下面这段命令行: react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
reload 出现 react native could not connect to develpment server在终端中,进入到项目的根目录 sudo npm start
======================我下载了别人的开源项目,怎么在我的电脑上运行呢?terminal切换到这个目录后 第一步【npm install】 第二步【react-native link】 第三步【cd androir && chmod 777 *】 第四步【 react-native run-android】 其中第二步并不是必须的,有一些npm_module用到了native功能时就需要先进行一下link才可以编译运行。比如:react-native-vector-icons,react-native-video等 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |