From dc39cac14f713713a24e48865e93aa49177157af Mon Sep 17 00:00:00 2001 From: ywp7913 Date: Thu, 12 Jun 2025 17:47:39 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#ICEQYS]:=20react-native-roo?= =?UTF-8?q?t-siblings=E6=96=87=E6=A1=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-root-siblings.md | 13 +++++++++- zh-cn/react-native-root-siblings.md | 40 ++++++++++++++++++----------- 2 files changed, 37 insertions(+), 16 deletions(-) diff --git a/en/react-native-root-siblings.md b/en/react-native-root-siblings.md index 10035277..9c45b65e 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! +