From c7234261b2163539018efccc9df26b2c4fffdd4e Mon Sep 17 00:00:00 2001 From: ding_chengjie Date: Mon, 13 May 2024 11:04:38 +0800 Subject: [PATCH] =?UTF-8?q?[Issues:=20#I9OQ2G]=20=E6=B7=BB=E5=8A=A0react-n?= =?UTF-8?q?ative-toast=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/react-native-toast.md | 230 ++++++++++++++++++++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 zh-cn/react-native-toast.md diff --git a/zh-cn/react-native-toast.md b/zh-cn/react-native-toast.md new file mode 100644 index 00000000..c2b930d4 --- /dev/null +++ b/zh-cn/react-native-toast.md @@ -0,0 +1,230 @@ +

+

react-native-toast

+

+

+ + Supported platforms + + + License + + +

+ +> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-toast) + + +## 安装与使用 + +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-toast Releases](https://github.com/react-native-oh-library/react-native-toast/releases),并下载适用版本的 tgz 包。 + +进入到工程目录并输入以下命令: + +> [!TIP] # 处替换为 tgz 包的路径 + + + +#### **npm** + +```bash +npm install @react-native-oh-tpl/react-native-toast@file:# +``` + +#### **yarn** + +```bash +yarn add @react-native-oh-tpl/react-native-toast@file:# +``` + + + +下面的代码展示了这个库的基本使用场景: + +> [!WARNING] 使用时 import 的库名不变。 + +```js +import React, { Component } from 'react'; +import { Text, View, Button } from 'react-native'; +import Toast from 'react-native-toast'; + +function ToastMasterDemo(){ + return ( + + Tosat ! +