From ecbc75613fbc7e53aa93cc92eb5b6c9902850f97 Mon Sep 17 00:00:00 2001 From: zgf Date: Thu, 12 Jun 2025 18:27:14 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#ICES73]:=20react-native-pop?= =?UTF-8?q?up-menu=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-popup-menu.md | 18 +++++++++++------- zh-cn/react-native-popup-menu.md | 18 +++++++++++------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/en/react-native-popup-menu.md b/en/react-native-popup-menu.md index 787b3eb9..f631ff79 100644 --- a/en/react-native-popup-menu.md +++ b/en/react-native-popup-menu.md @@ -14,7 +14,7 @@ -> [!TIP] [GitHub address](https://github.com/instea/react-native-popup-menu) +> [!TIP] [GitHub address](https://github.com/instea/react-native-popup-menu/tree/58b78642808ab28012f429d59a2c302dc41b5924) ## Installation and Usage @@ -44,7 +44,7 @@ import { MenuProvider } from "react-native-popup-menu"; export const App = () => ( - + ); @@ -55,19 +55,23 @@ import { MenuOption, MenuTrigger, } from "react-native-popup-menu"; - +import { + Text, + View, + Alert, +} from "react-native"; export const YourComponent = () => ( Hello world! - alert(`Save`)} text="Save" /> - alert(`Delete`)}> + Alert.alert(`Save`)} text="Save" /> + Alert.alert(`Delete`)}> Delete alert(`Not called`)} + onSelect={() => Alert.alert(`Not called`)} disabled={true} text="Disabled" /> @@ -156,4 +160,4 @@ For details, see [react-native-popup-menu](https://github.com/instea/react-nativ ## License -This project is licensed under [The ISC License (ISC)](https://github.com/instea/react-native-popup-menu/blob/master/LICENSE). +This project is licensed under [The ISC License (ISC)](https://github.com/instea/react-native-popup-menu/blob/master/LICENSE). \ No newline at end of file diff --git a/zh-cn/react-native-popup-menu.md b/zh-cn/react-native-popup-menu.md index 2fb159ab..d6052b98 100644 --- a/zh-cn/react-native-popup-menu.md +++ b/zh-cn/react-native-popup-menu.md @@ -14,7 +14,7 @@ -> [!TIP] [Github 地址](https://github.com/instea/react-native-popup-menu) +> [!TIP] [Github 地址](https://github.com/instea/react-native-popup-menu/tree/58b78642808ab28012f429d59a2c302dc41b5924) ## 安装与使用 @@ -44,7 +44,7 @@ import { MenuProvider } from "react-native-popup-menu"; export const App = () => ( - + ); @@ -55,19 +55,23 @@ import { MenuOption, MenuTrigger, } from "react-native-popup-menu"; - +import { + Text, + View, + Alert, +} from "react-native"; export const YourComponent = () => ( Hello world! - alert(`Save`)} text="Save" /> - alert(`Delete`)}> + Alert.alert(`Save`)} text="Save" /> + Alert.alert(`Delete`)}> Delete alert(`Not called`)} + onSelect={() => Alert.alert(`Not called`)} disabled={true} text="Disabled" /> @@ -156,4 +160,4 @@ export const YourComponent = () => ( ## 开源协议 -本项目基于 [The ISC License (ISC)](https://github.com/instea/react-native-popup-menu/blob/master/LICENSE) ,请自由地享受和参与开源。 +本项目基于 [The ISC License (ISC)](https://github.com/instea/react-native-popup-menu/blob/master/LICENSE) ,请自由地享受和参与开源。 \ No newline at end of file -- Gitee