From a9f388169ae814a6dd793e87dacab75c337f17a6 Mon Sep 17 00:00:00 2001 From: dong Date: Fri, 5 Jul 2024 17:09:32 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[#I9KN60]=20=E4=BF=AE=E6=94=B9react-nat?= =?UTF-8?q?ive-flip-card=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/react-native-flip-card.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/zh-cn/react-native-flip-card.md b/zh-cn/react-native-flip-card.md index 4d7e390a..da8a6cc7 100644 --- a/zh-cn/react-native-flip-card.md +++ b/zh-cn/react-native-flip-card.md @@ -1,4 +1,6 @@ -> 模板版本:v0.2.0 + + +> 模板版本:v0.2.2

react-native-flip-card

@@ -212,9 +214,9 @@ const createCard = (val, i) => ## 约束与限制 ### 兼容性 +本文档内容基于以下版本验证通过: -1. RNOH:0.72.13; SDK:HarmonyOS NEXT Developer Preview1; IDE:DevEco Studio 4.1.3.500; ROM:204.1.0.59; -2. RNOH:0.72.20; SDK:HarmonyOS NEXT Developer Beta1 B.0.18、HarmonyOS NEXT Developer Preview0 B.0.60、HarmonyOS NEXT Developer Preview2 B.0.73; IDE:DevEco Studio 5.0.3.200; ROM:2.0.0.18; +1. RNOH:0.72.26; SDK::HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5.0.3.300SP2; ROM:3.0.0.24 (Canary3); ## 属性 ### FlipCard @@ -229,20 +231,22 @@ const createCard = (val, i) => | flip |boolean|If you change default display side, you can set true to this param. If you change side, you can pass bool variable dynamically. | false |no |IOS/Android| yes | |clickable |boolean| If you want to disable click a card, you can set false to this paramicon. | true | no |IOS/Android | yes | | friction |number| The friction of card animation | 6|no | IOS/Android|yes | -| perspective |number| The amount of perspective applied to the flip transformation | 0 |no | IOS/Android | yes | +| perspective |number| The amount of perspective applied to the flip transformation | 1000 |no | IOS/Android | yes | | flipHorizontal |boolean| If you set true, a card flip to horizontal. | false |no | IOS/Android | yes | -| flipVertical |boolean| If you set false, a card not flip to vertical. If you set true both flipHorizontal and flipVertical , a card flip to diagonal. | true |no |IOS/Android | yes | +| flipVertical |boolean| If you set false, a card not flip to vertical. If you set true both flipHoriszontal and flipVertical , a card flip to diagonal. | true |no |IOS/Android | yes | |onFlipStart |function| When a card starts a flip animation, call onFlipEnd function with param. | NA |no | IOS/Android|yes | |onFlipEnd |function| When a card finishes a flip animation, call onFlipEnd function with param. | NA |no |IOS/Android| yes | |alignHeight |boolean| If you pass true to alignHeight param, the card keep height of bigger side. | false |no |IOS/Android | yes | |alignWidth |boolean| If you pass true to alignWidth param, the card keep width of bigger side. | false |no |IOS/Android | yes | -|useNativeDriver |boolean| If you pass true to useNativeDriver param, the card animation will utilize the native driver. | false |no |IOS/Android | yes | +|useNativeDriver |boolean| If you pass true to useNativeDriver param, the card animation will utilize the native driver. | true |no |IOS/Android | yes | +## 遗留问题 +## 其他 ## 开源协议 本项目基于 [The MIT License (MIT)](https://github.com/moschan/react-native-flip-card/blob/master/LICENSE) ,请自由地享受和参与开源。 - + -- Gitee