react-native-root-view

0.1.3 • Public • Published

react-native-root-view

inject a component to root container component

npm

NPM

Install

npm install --save react-native-root-view
// or
yarn add react-native-root-view

Usage

import rootView from 'react-native-root-view';
 
// inject a component
const id = rootView.set(<YOUR_CUSTOM_COMPONENT/>);
 
// remove the injected component
rootView.remove(id);

Example

git clone https://github.com/beilunyang/react-native-root-view
cd react-native-root-view/example
npm install
npm install react-native-root-view
npm start

License

MIT

Package Sidebar

Install

npm i react-native-root-view

Weekly Downloads

6

Version

0.1.3

License

MIT

Unpacked Size

5.82 kB

Total Files

6

Last publish

Collaborators

  • beilunyang