Skip to content

Jeepeng/react-native-roots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-roots

<View> <App /> <---- original app <YourView1 /> <---- your view <YourView2 /> <---- your view <YourView3 /> <---- your view ... </View> 

Installation

npm install react-native-roots --save

Usage

import Roots from 'react-native-roots'; // add root view Roots.add('loading', ( <View style={styles.container}> <View style={styles.mask}> <ActivityIndicator animating size="small" color="#fff" /> </View> </View> )); // remove root view Roots.remove('loading');

API

add(key, element)

add root view

remove(key)

remove root view

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published