Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leavesster/rnlocalwebdemo
https://github.com/leavesster/rnlocalwebdemo
localweb react-native
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/leavesster/rnlocalwebdemo
- Owner: leavesster
- Created: 2017-12-11T13:30:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-16T04:35:45.000Z (about 7 years ago)
- Last Synced: 2024-11-15T09:45:15.127Z (2 months ago)
- Topics: localweb, react-native
- Language: Objective-C
- Size: 131 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RNLocalWebDemo
## commit message
1. react-native init
* just init from react-native command
2. local source
* add local html
3. iOS support
* 在Xcode中,把上一步添加的HTML拖进工程文件中。(文件还在原来位置)。读取路径直接 "index.html" 就会读取到打包APP根目录内文件。
4. Android support
* 把HTML文件复制到 `/android/app/src/main/assets/` 下,此时文件在安卓项目对应 `file:///android_asset/index.html` 。