This loader take all the parent element size with an overlay, preventing the user to tap elements underneath it.
Show the modale.
Hide the modale.
Define some graphics into the component
style : (object) Object containing styles. For now you can define theses:
- overlay (View component)
- box (View component)
Fill the modale content with your own component. Could be anything !
component : (React Component) a React Component (really, your imagination is the limit here)
modale.setContent(<Text>I'm the modale content !</Text>);
modale.setStyle({box: {backgroundColor:'red'}});
modale.show();
setTimeout(() => {
modale.hide();
},3000)