diff --git a/README.md b/README.md index 2081d9de822bec663943b04f47ae7f000f71a275..6c1713215d3a7505d9c313a42b8fd19b2166454c 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 bf8055a7dd4e31d39c287fd1e2cc9f98750c5825..9c18dd1a9f6c0ed4c089b4eb68f6a6689b90583e 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 0000000000000000000000000000000000000000..d5f15dcd7aaa447d01b8eea032e13ab8fc0f19ae --- /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 ( + +