用android studio 打包成apk 文件react
js buildandroid
執行:react-native
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/
進入Android studio app
坐等性能
問?爲啥要build jsui
原生應用提供了js 的運行環境,實際上咱們仍是要把工程打包成js文件,實際執行時也是在js解析器中執行的,也所以會比原生性能稍稍遜色;spa