From c7e00e84a40e7e838e5f924b42652d951826787b Mon Sep 17 00:00:00 2001 From: 17382561546 <2106377850@qq.com> Date: Mon, 27 May 2024 17:10:55 +0800 Subject: [PATCH 1/3] =?UTF-8?q?docs:=20[Issues:=20#I9OQ2G]=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0react-native-toast.md=E6=8C=87=E5=AF=BC=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/react-native-toast.md | 222 ++++++++++++++++++++++++++++++++++++ 1 file changed, 222 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..e22dfa7a --- /dev/null +++ b/zh-cn/react-native-toast.md @@ -0,0 +1,222 @@ +模板版本:v0.2.1 + +

+

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 ! +