Another common piece of many mobile UIs is the modal. Modals are the perfect solution for isolating data in a meaningful way, alerting a user of updated info, displaying a required action that blocks other user interactions (like a login screen), and so much more.
We will be making use of the third-party package react-native-modalbox. This package provides an easy-to-understand and versatile API for creating modals, with options including the following:
- position: Top, bottom, center
- entry: Direction modal enters from—top or bottom?
- backdropColor
- backdropOpacity
For all of the available options, refer to the documentation at: