inject a component to root container component
npm install --save react-native-root-view
// or
yarn add react-native-root-view
import rootView from 'react-native-root-view';
// inject a component
const id = rootView.set(<YOUR_CUSTOM_COMPONENT/>);
// remove the injected component
rootView.remove(id);
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
MIT