1 問題
react native項目在assert目錄下面生成index.android.bundle檔案用下面的指令
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
編譯結果如下
Scanning folders for symlinks in /home/chenyu/7.6.6/10.12/SecureMail/SecureMail/node_modules (10ms)
Scanning folders for symlinks in /home/chenyu/7.6.6/10.12/SecureMail/SecureMail/node_modules (9ms)
Loading dependency graph...
2 解決辦法
npm install --verbose