<View>
<App /> <---- original app
<YourView1 /> <---- your view
<YourView2 /> <---- your view
<YourView3 /> <---- your view
...
</View>
npm install react-native-roots --save
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');
add root view
remove root view