1.0.2 • Published 6 years ago
react-native-main-bundle-path v1.0.2
react-native-main-bundle-path
It allows you to get the main bundle path on iOS without requiring react-native-fs. It would come in handy when you would like to load a bundled html file on WebView.
Getting started
$ npm install react-native-main-bundle-path --saveMostly automatic installation
$ react-native link react-native-main-bundle-pathUsage
Using Promise:
import MainBundlePath from 'react-native-main-bundle-path'
MainBundlePath.get().then(path => {
console.log('main bundle path:', path)
})Reference:
import MainBundlePath from 'react-native-main-bundle-path'
In your react component:
<Text>{MainBundlePath.bundlePath}</Text>License
MIT License. By Takuya Matsuyama (@craftzdog).