All you have to do is pass a "visible" prop and optionally an onPress handler.
export default class Home extends Component {
state = {
loading: true
};
componentDidMount() {
// do your async stuff.
setTimeout(()=>{
this.setState({
loading: false //remove hud
});
}, 5000);
}
render() {
// make sure you add the hud at the end of the container.
return (
<View style={styles.container}>
<Text>All your view goes here.</Text>
<Hud visible={ this.state.loading } />
</View>
);
}
}