diff --git a/zh-cn/react-native-toast.md b/zh-cn/react-native-toast.md new file mode 100644 index 0000000000000000000000000000000000000000..289a1c0ff4c087782dfe30293e166892c9614410 --- /dev/null +++ b/zh-cn/react-native-toast.md @@ -0,0 +1,234 @@ +模板版本:v0.2.0 + +

+

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