diff --git a/en/react-native-root-siblings.md b/en/react-native-root-siblings.md index 10035277909e154f6e985c34738f496e0a94951c..9c45b65e26d81fe3ada533c27a1919bdfc1010bd 100644 --- a/en/react-native-root-siblings.md +++ b/en/react-native-root-siblings.md @@ -43,6 +43,8 @@ Make your own `showModal` and use it in any component without any `isShow` state ```jsx import RootSiblingsManager from 'react-native-root-siblings'; +import React from 'react'; +import { View, Text, Button } from 'react-native'; export const showModal = (renderModal) => { let rootNode; @@ -54,7 +56,16 @@ export const showModal = (renderModal) => { return onClose; }; -import WelcomeModal from './WelcomeModal'; +const WelcomeModal = ({ onClose }) => { + return ( + + Welcome! + Thanks for using out app! +