From f49cacc6e531399c87261e5dbcf47c034f5a6329 Mon Sep 17 00:00:00 2001 From: xiong Date: Wed, 16 Oct 2024 18:15:34 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IAXLQZ]=E4=BF=AE=E6=94=B9re?= =?UTF-8?q?act-native-paper=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-paper.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/zh-cn/react-native-paper.md b/zh-cn/react-native-paper.md index 72d62879..40562904 100644 --- a/zh-cn/react-native-paper.md +++ b/zh-cn/react-native-paper.md @@ -451,6 +451,23 @@ RNOH:0.72.20-CAPI; SDK:HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5 | theme | theme | ThemeProp | Yes | All | Yes | | testID | theme | string | Yes | All | Yes | +**Checkbox.Android**:Checkboxes allow the selection of multiple options from a set. This component follows platform guidelines for Android, but can be used on any platform. +| TouchableRipple props | Extends: ...TouchableRipple props | props | Yes | All | Yes | +| status (required) | Status of checkbox. | checked \| unchecked \| indeterminate | Yes | All | Yes | +| onPress | Function to execute on press. | (e: GestureResponderEvent) => void | Yes | All | Yes | +| uncheckedColor | Custom color for unchecked checkbox. | string | Yes | All | Yes | +| color | Custom color for checkbox. | string | Yes | All | Yes | +| theme | theme | ThemeProp | Yes | All | Yes | +| testID | theme | string | Yes | All | Yes | + +**Checkbox.IOS**:Checkboxes allow the selection of multiple options from a set. This component follows platform guidelines for Android, but can be used on any platform. +| TouchableRipple props | Extends: ...TouchableRipple props | props | Yes | All | Yes | +| status (required) | Status of checkbox. | checked \| unchecked \| indeterminate | Yes | All | Yes | +| onPress | Function to execute on press. | (e: GestureResponderEvent) => void | Yes | All | Yes | +| color | Custom color for checkbox. | string | Yes | All | Yes | +| theme | theme | ThemeProp | Yes | All | Yes | +| testID | theme | string | Yes | All | Yes | + **Checkbox.Item**:Checkbox.Item allows you to press the whole row (item) instead of only the Checkbox. | Name | Description | Type | Required | Platform | HarmonyOS Support | @@ -853,6 +870,7 @@ RNOH:0.72.20-CAPI; SDK:HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5 | overlayAccessibilityLabel | Accessibility label for the overlay. This is read by the screen reader when the user taps outside the menu. | string | Yes | All | Yes | | children (required) | Content of the Menu | React.ReactNode | Yes | All | Yes | | style | style | StyleProp | Yes | All | Yes | +| elevation(Available in v5.x with theme version 3) | Elevation level of the menu's content. Shadow styles are calculated based on this value. | MD3Elevation | Yes | All | Yes | | contentStyle | Style of menu's inner content. | Animated.WithAnimatedValue> | Yes | All | Yes | | theme | theme | InternalTheme | Yes | All | Yes | | keyboardShouldPersistTaps | Inner ScrollView prop | crollViewProps['keyboardShouldPersistTaps'] | Yes | All | Yes | @@ -1080,6 +1098,8 @@ RNOH:0.72.20-CAPI; SDK:HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5 | Name | Description | Type | Required | Platform | HarmonyOS Support | | :-----: | :---------: | :-------------: | -------- | -------- | ----------------- | | text (required) | Text to show. | string | Yes | All | Yes | +| onLayout | Function to execute on Layout. | fuction | Yes | All | Yes | +| onPress | Function to execute on press. | fuction | Yes | All | Yes | | accessibilityLabel | Accessibility label for the affix. This is read by the screen reader when the user taps the affix. | string | Yes | All | Yes | | textStyle | Style that is passed to the Text element. | StyleProp | Yes | All | Yes | | theme | theme | string | Yes | All | Yes | -- Gitee