Skip to main content

Portal

A portal allows users to render components at different locations in the parent tree

How to use

import React from 'react';
import { Portal, Text } from '@gyri/native-ui-components';

const MyComponent = () => (
<Portal>
<Text>This is rendered at a different place</Text>
</Portal>
);

export default MyComponent;

For more details visit https://callstack.github.io/react-native-paper/docs/components/Portal/