diff --git a/zh-cn/react-native-popover-view.md b/zh-cn/react-native-popover-view.md new file mode 100644 index 0000000000000000000000000000000000000000..f4e37236b3cb657bc80596ab8138a5a2b2972292 --- /dev/null +++ b/zh-cn/react-native-popover-view.md @@ -0,0 +1,182 @@ +> 模板版本:v0.1.3 + +

+

@react-native-oh-tpl/react-native-popover-view

+

+

+ + Supported platforms + + + License + + +

+ + +> [!tip] [Github 地址](https://github.com/react-native-oh-library/react-native-popover-view) + +## 安装与使用 + +进入到工程目录并输入以下命令: + + + +#### **npm** + +```bash +npm install @react-native-oh-tpl/react-native-popover-view@^5.1.7-0.0.1 +``` + +#### **yarn** +```bash +yarn add @react-native-oh-tpl/react-native-popover-view@^5.1.7-0.0.1 +``` + + + +快速使用: + +```typescript +import React, { useState } from 'react'; +import {View, TouchableOpacity, Text, Button, Easing } from 'react-native'; +import Popover, {PopoverMode, PopoverPlacement, Rect } from 'react-native-popover-view'; + +const PopoverDemo = () => { + const [showPopoverA, setShowPopoverA] = useState(false); + const [showPopoverB, setShowPopoverB] = useState(false); + const [showPopoverC, setShowPopoverC] = useState(false); + const [onOpenStart, setOnOpenStart] = useState(111); + const [onOpenComplete, setOnOpenComplete] = useState(111); + const [onCloseStart, setOnCloseStart] = useState(111); + const [onCloseComplete, setOnCloseComplete] = useState(111); + const [offsetValue, setOffsetValue] = useState(10); + return ( + + + test:from、isVisible +