Portalize
The simplest way to render anything on top of the rest.
This component is extracted from react-native-paper
and has been simplified for the purpose of react-native-modalize
.
Installation
yarn add react-native-portalize
Usage
;;; ;
Example with react-native-modalize
and react-navigation
;;;;;; ;
Props
Host
children
A React node that will be most likely wrapping your whole app.
Type | Required |
---|---|
node | Yes |
style
Optional props to define the style of the Host component.
Type | Required |
---|---|
style | No |
Portal
children
The React node you want to display on top of the rest.
Type | Required |
---|---|
node | Yes |