react-native-main-bundle-path
v1.0.2
Published
Get main bundle path on React Native
Downloads
65
Readme
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 --save
Mostly automatic installation
$ react-native link react-native-main-bundle-path
Usage
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).