React Native 打包离线包

2017-02-24  本文已影响0人  mimikiy

build package

react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output main.jsbundle --assets-dest main.jsbundle

change AppDelegate.m

jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

copy main.jsbundle file to XCode project

notice: select Create folder references


problem

Property left of AssignmentExpression expected node to be of a type ["LVal"] but instead got "BooleanLiteral"
No script URL provided. Make sure the packager is running or you have embedded a JS bundle in your application

上一篇下一篇

猜你喜欢

热点阅读