Skip to content

Add modalComponent prop#120

Merged
jasongaare merged 1 commit intojasongaare:masterfrom
ersefuril:feature/add-modalComponent-prop
Sep 16, 2021
Merged

Add modalComponent prop#120
jasongaare merged 1 commit intojasongaare:masterfrom
ersefuril:feature/add-modalComponent-prop

Conversation

@ersefuril
Copy link
Copy Markdown
Contributor

In some cases, the default Modal component from react-native should be replaced by another one (typically, when using a library such as react-native-web).
The new prop modalComponent will allow you to achieve that, with minimal code changes.
Feel free to ask if I need to edit something.

@Gabrielfcs
Copy link
Copy Markdown

Gabrielfcs commented Aug 30, 2021

Excellent change, because in addition to allowing the use of other modal libs, it also allows the use of the statusBarTranslucent prop of the React Native modal component that even using the topAjustment prop of this lib, it is still not possible to cover the entire screen with the backdrop

@jasongaare jasongaare merged commit 7424d04 into jasongaare:master Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants