From 56c3a2332f3d3ddbfc234afc15ebe216aa37e7a7 Mon Sep 17 00:00:00 2001 From: yangzx21 Date: Sat, 27 Apr 2024 16:43:13 +0800 Subject: [PATCH] =?UTF-8?q?[Issues:=20#I9K4RO]=20=E6=B7=BB=E5=8A=A0react-n?= =?UTF-8?q?ative-easy-toast=E4=BD=BF=E7=94=A8=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + _sidebar.md | 2 + zh-cn/react-native-easy-toast.md | 115 +++++++++++++++++++++++++++++++ 3 files changed, 118 insertions(+) create mode 100644 zh-cn/react-native-easy-toast.md diff --git a/README.md b/README.md index 2081d9de..6c171321 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ | 120 | [styled-components](https://github.com/styled-components/styled-components "https://github.com/styled-components/styled-components") | 6.1.8 | \- | \- | [链接](https://react-native-oh-library.gitee.io/usage-docs/#/zh-cn/styled-components) | | 121 | [styled-system](https://github.com/react-native-picker/picker "https://github.com/react-native-picker/picker") | 5.1.5 | \- | \- | [链接](https://react-native-oh-library.gitee.io/usage-docs/#/zh-cn/styled-system) | | 122 | [react-native-sensors](https://github.com/react-native-oh-library/react-native-sensors "https://github.com/react-native-oh-library/react-native-sensors") | 7.2.1 | 是 | [@react-native-oh-tpl/react-native-sensors](https://github.com/react-native-oh-library/react-native-sensors/releases "https://github.com/react-native-oh-library/react-native-sensors/releases") | [链接](https://react-native-oh-library.gitee.io/usage-docs/#/zh-cn/react-native-sensors) | +| 123 | [react-native-easy-toast](https://github.com/crazycodeboy/react-native-easy-toast "https://github.com/crazycodeboy/react-native-easy-toast") | 2.3.0 | - | - | [链接](https://react-native-oh-library.gitee.io/usage-docs/#/zh-cn/react-native-easy-toast) | ## 社区 diff --git a/_sidebar.md b/_sidebar.md index bf8055a7..9c18dd1a 100644 --- a/_sidebar.md +++ b/_sidebar.md @@ -110,6 +110,7 @@ - [react-native-reanimated-carousel](/zh-cn/react-native-reanimated-carousel.md) - [react-native-drag-sort](/zh-cn/react-native-drag-sort.md) - [react-redux](/zh-cn/react-redux.md) + - [react-native-easy-toast](/zh-cn/react-native-easy-toast.md) - 纯JS库 - [crypto-js](/zh-cn/crypto-js.md) - [deepmerge](/zh-cn/deepmerge.md) @@ -130,3 +131,4 @@ - [react-router-dom](/zh-cn/react-router-dom.md) - [redux-actions](/zh-cn/redux-actions.md) - [redux-thunk](/zh-cn/redux-thunk.md) + diff --git a/zh-cn/react-native-easy-toast.md b/zh-cn/react-native-easy-toast.md new file mode 100644 index 00000000..d5f15dcd --- /dev/null +++ b/zh-cn/react-native-easy-toast.md @@ -0,0 +1,115 @@ + + +> 模板版本:v0.2.0 + +

+

react-native-easy-toast

+

+

+ + Supported platforms + + + License + + +

+ +> [!TIP] [Github 地址](https://github.com/crazycodeboy/react-native-easy-toast) + + +## 安装与使用 + +进入到工程目录并输入以下命令: + + + +#### **npm** + +```bash +npm install react-native-easy-toast@2.3.0 +``` + +#### **yarn** + +```bash +yarn add react-native-easy-toast@2.3.0 +``` + + + +下面的代码展示了这个库的基本使用场景: + +```js +import React, { Component } from "react"; +import { Text, View, Button } from "react-native"; +import { + Toast +} from "react-native-easy-toast"; + +export default class App extends Component { + constructor(props) { + super(props); + } + render() { + return ( + +