From fe589d438abfa9e5729a16e1d951792231b4ccd0 Mon Sep 17 00:00:00 2001 From: zgf Date: Thu, 12 Jun 2025 18:37:31 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#ICESAD]:=20react-native-dra?= =?UTF-8?q?wer-layout-polyfill=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 Signed-off-by: zgf --- en/react-native-drawer-layout-polyfill.md | 6 +++--- zh-cn/react-native-drawer-layout-polyfill.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/en/react-native-drawer-layout-polyfill.md b/en/react-native-drawer-layout-polyfill.md index 71ca1236..c2d616cc 100644 --- a/en/react-native-drawer-layout-polyfill.md +++ b/en/react-native-drawer-layout-polyfill.md @@ -13,7 +13,7 @@

-> [!TIP] [GitHub address](https://github.com/rnc-archive/react-native-drawer-layout-polyfill) +> [!TIP] [GitHub address](https://github.com/rnc-archive/react-native-drawer-layout-polyfill/tree/v2.0.0) ## Installation and Usage @@ -54,11 +54,11 @@ const App = () => { const [value, onChangeText] = useState(""); const open = () => { - drawerLayoutRef.current.openDrawer(); + drawerLayoutRef.current?.openDrawer(); }; const close = () => { - drawerLayoutRef.current.closeDrawer(); + drawerLayoutRef.current?.closeDrawer(); }; const changeDrawerPosition = () => { diff --git a/zh-cn/react-native-drawer-layout-polyfill.md b/zh-cn/react-native-drawer-layout-polyfill.md index a0d2d51f..aabb0414 100644 --- a/zh-cn/react-native-drawer-layout-polyfill.md +++ b/zh-cn/react-native-drawer-layout-polyfill.md @@ -13,7 +13,7 @@

-> [!TIP] [Github 地址](https://github.com/rnc-archive/react-native-drawer-layout-polyfill) +> [!TIP] [Github 地址](https://github.com/rnc-archive/react-native-drawer-layout-polyfill/tree/v2.0.0) ## 安装与使用 @@ -54,11 +54,11 @@ const App = () => { const [value, onChangeText] = useState(""); const open = () => { - drawerLayoutRef.current.openDrawer(); + drawerLayoutRef.current?.openDrawer(); }; const close = () => { - drawerLayoutRef.current.closeDrawer(); + drawerLayoutRef.current?.closeDrawer(); }; const changeDrawerPosition = () => { -- Gitee