终端cd到工程目录下
react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output ./ios/main.jsbundle --assets-dest ./ios/
终端打印如下:
[2017-03-03 15:59:22] <START> Initializing Packager
[2017-03-03 15:59:22] <START> Building in-memory fs for JavaScript
[2017-03-03 15:59:23] <END> Building in-memory fs for JavaScript (240ms)
[2017-03-03 15:59:23] <START> Building Haste Map
[2017-03-03 15:59:30] <END> Building Haste Map (7079ms)
[2017-03-03 15:59:30] <END> Initializing Packager (7628ms)
[2017-03-03 15:59:30] <START> Transforming files
[2017-03-03 15:59:35] <END> Transforming files (5360ms)
bundle: start
bundle: finish
bundle: Writing bundle output to: ./ios/main.jsbundle
bundle: Copying 289 asset files
bundle: Done writing bundle output
bundle: Done copying assets
addFileTo, 勾选如下:
屏幕快照 2017-03-03 下午4.04.02.png添加到项目中的文件夹必须是蓝色
网友评论