react-native-bundle-manager
TypeScript icon, indicating that this package has built-in type declarations

0.70.5 • Public • Published

react-native-bundle-manager

Allows to change packager host ip Allows to load ja bundle from remote CDN via URL. Useful for testing a Metro bundler running remotely.

Installation

yarn add react-native-bundle-manager

Android

in android/app/src/main/java/<yourAppId>/MainApplication.java find line private final ReactNativeHost mReactNativeHost Replace instance of new ReactNativeHost(this) { on new ReactNativeBundleManagerHost(this) { replace

Usage

import BundleManager from 'react-native-bundle-manager';

// Set your host ip on which `react-native start` is launched
BundleManager.setPackagerHost('192.168.1.10:8081')

// Or call the `load` method explictly in your own prompt:
BundleManager.load('https://some-remote-url/bundle.js');

Package Sidebar

Install

npm i react-native-bundle-manager

Weekly Downloads

3

Version

0.70.5

License

MIT

Unpacked Size

519 kB

Total Files

55

Last publish

Collaborators

  • vazcobot
  • cristo-rabani