在其它内容之上渲染任何内容的最简单方法。
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.
yarn add react-native-portalizeimport React from 'react';
import { View, Text } from 'react-native';
import { Host, Portal } from 'react-native-portalize';
export const MyApp = () => (
Some copy here and there...
A portal on top of the rest
);Example with react-native-modalize and react-navigation
…childrenA React node that will be most likely wrapping your whole app.
| Type | Required |
|---|---|
| node | Yes |
styleOptional props to define the style of the Host component.
| Type | Required |
|---|---|
| style | No |
childrenThe React node you want to display on top of the rest.
| Type | Required |
|---|---|
| node | Yes |
暂无开放 Issues,或尚未同步最近议题。