React-Native學習筆記
1、react-native init ProjectName
2、ios項目缺少main.jsbundle,在終端中進入iOS目錄,npm start,
3、然後就在這個狀態下不動了:
React packager ready.
Loading dependency graph, done.
4、這時候你應該再打開一個終端窗口,來到項目目錄下運行
curl http://localhost:8081/index.ios.bundle -o main.jsbundle
文章參考
5、運行起來之後又報錯:
Unhandled JS Exception:Unexpected token':'.Parse error.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
react-native學習----------Android的Windows搭建
序言 開始研究react-native來弄安卓和IOS ^_^~~~.歡迎騷擾:[email protected] 參考資料地址:https://reactnative.cn/docs/
cuiyaonan2000
2020-07-08 12:24:18
react-native android環境連接夜神模擬器
ynd_sg
2020-07-08 09:20:23
navigation筆記
stevenzqzq
2020-07-08 07:34:44
react-native 第三方庫
stevenzqzq
2020-07-08 07:34:44
isFinite使用說明
stevenzqzq
2020-07-08 07:34:44
react-native 發送接收“廣播”
stevenzqzq
2020-07-08 07:34:44
使用react-native-camera實現react-native的拍照功能
hellochange
2020-07-07 22:02:42
Library not found for -lstdc++.6.0.9
学习笔记999
2020-07-07 12:39:18
react-native 連接真機debugger時打包彈出報錯 android - Waiting for Debugger 解決
hzxOnlineOk
2020-07-06 20:35:54
Unable to load script from assets‘index.android.bundle‘.Make sure your bundle is packaged correctly
hzxOnlineOk
2020-07-06 20:35:54
React-Native Exception
lxmy2012
2020-07-06 16:37:52
React-Native 在android寫不支持gif的解決方案!
zhengxiuchen86
2020-07-06 12:05:06
React-Navigation (RN 的路由)採坑總結
赵sir来了
2020-07-06 01:21:56
RN 中使用 React-Redux
赵sir来了
2020-07-06 01:21:56