From 4209d90cdc6ca345a8d5e307728b210ef8e83e44 Mon Sep 17 00:00:00 2001 From: rjh <15191819693@163.com> Date: Tue, 6 Aug 2024 11:30:18 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issue:=20#IAHKZ8]=E4=BF=AE=E6=94=B9rea?= =?UTF-8?q?ct-native-section-list-get-item-layout=E7=9A=84=E6=8C=87?= =?UTF-8?q?=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...act-native-section-list-get-item-layout.md | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/zh-cn/react-native-section-list-get-item-layout.md b/zh-cn/react-native-section-list-get-item-layout.md index 35353637..c5bb65cc 100644 --- a/zh-cn/react-native-section-list-get-item-layout.md +++ b/zh-cn/react-native-section-list-get-item-layout.md @@ -1,19 +1,18 @@ - -> 模板版本:v0.1.3 +> 模板版本:v0.2.2

-

rn-section-list-get-item-layout

+

react-native-section-list-get-item-layout

- Supported platforms + Supported platforms - License + License

-> [!tip] [Github 地址](https://github.com/jsoendermann/rn-section-list-get-item-layout) +> [!TIP] [Github 地址](https://github.com/jsoendermann/rn-section-list-get-item-layout) ## 安装与使用 @@ -24,13 +23,13 @@ #### **npm** ```bash -npm install react-native-section-list-get-item-layout@^2.2.3 +npm install react-native-section-list-get-item-layout@2.2.3 ``` #### **yarn** ```bash -yarn add react-native-section-list-get-item-layout@^2.2.3 +yarn add react-native-section-list-get-item-layout@2.2.3 ``` @@ -61,6 +60,8 @@ class MyComponent extends React.Component { return ; } } + +export default MyComponent ``` ## 约束与限制 @@ -69,7 +70,7 @@ class MyComponent extends React.Component { 本文档内容基于以下版本验证通过: -1. RNOH:0.72.11; SDK:OpenHarmony(api11) 4.1.0.53; IDE:DevEco Studio 4.1.3.412; ROM:2.0.0.52(SP22C00E52R1P17log); +1. RNOH: 0.72.27; SDK: HarmonyOS-Next-DB1 5.0.0.29(SP1); IDE: DevEco Studio 5.0.3.403; ROM: 3.0.0.25; ## API @@ -77,10 +78,9 @@ class MyComponent extends React.Component { > [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。 -详情见 [rn-section-list-get-item-layout 源库地址](https://github.com/jsoendermann/rn-section-list-get-item-layout) -| Name | Description | Type | Required | Platform | HarmonyOS Support | -| ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | -------- | ----------------- | +| Name | Description | Type | Required | Platform | HarmonyOS Support | +| ------------------------------------------------------------ | ------------------------------------------------------------ | -------- | -------- | -------- | ----------------- | | sectionListGetItemLayout({getItemHeight, getSeparatorHeight, getSectionHeaderHeight,getSectionFooterHeight,listHeaderHeight}) | This package provides a function that helps you construct the getItemLayout function for your SectionLists. For an explanation of why this exists, see this post. It's meant to be used like this | function | Yes | All | Yes | ## 遗留问题 @@ -90,5 +90,3 @@ class MyComponent extends React.Component { ## 开源协议 本项目基于 [The MIT License (MIT)](https://github.com/jsoendermann/rn-section-list-get-item-layout/blob/master/LICENSE) ,请自由地享受和参与开源。 - - \ No newline at end of file -- Gitee