0.1.3 • Published 6 years ago
react-native-root-view v0.1.3
react-native-root-view
inject a component to root container component
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