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} { ... }