- react-native init
- just init from react-native command
- local source
- add local html
- iOS support
- 在Xcode中,把上一步添加的HTML拖进工程文件中。(文件还在原来位置)。读取路径直接 "index.html" 就会读取到打包APP根目录内文件。
- Android support
- 把HTML文件复制到
/android/app/src/main/assets/
下,此时文件在安卓项目对应file:///android_asset/index.html
。