react-native-main-bundle-path

1.0.2 • Public • Published

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).

Readme

Keywords

Package Sidebar

Install

npm i react-native-main-bundle-path

Weekly Downloads

11

Version

1.0.2

License

MIT

Unpacked Size

13.8 kB

Total Files

11

Last publish

Collaborators

  • craftzdog