Skip to content

beilunyang/react-native-root-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

inject a component to root container component

Resources

License

Stars

Watchers

Forks

Packages

No packages published