From 1d20280e66a7f8591f27b7fe40e41b0e5154c402 Mon Sep 17 00:00:00 2001 From: Dava Date: Thu, 29 Jun 2023 00:02:08 +0400 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0c797af..47e0b16 100644 --- a/README.md +++ b/README.md @@ -102,16 +102,16 @@ const BasicScreen = () => { In order to get your teleported content on top of all native views, you will need to wrap your content with `FullWindowOverlay` from `react-native-screens`. ```tsx +import { Portal } from '@gorhom/portal'; +import { StyleSheet } from 'react-native'; import { FullWindowOverlay } from 'react-native-screens'; -const BasicScreen = () => { +const BasicScreen = (props) => { return ( { ... } - - Text to be teleported to the CustomView component - + {props.children} { ... }