From c19350a70a2d49d6fc5271d8485a275e1aede8b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98bug123?= <1518171514@qq.com>
Date: Wed, 27 Dec 2023 10:11:21 +0000
Subject: [PATCH 1/9] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20vmal?=
=?UTF-8?q?l/datetimepicker.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vmall/datetimepicker.md | 258 ----------------------------------------
1 file changed, 258 deletions(-)
delete mode 100644 vmall/datetimepicker.md
diff --git a/vmall/datetimepicker.md b/vmall/datetimepicker.md
deleted file mode 100644
index 552f4f30..00000000
--- a/vmall/datetimepicker.md
+++ /dev/null
@@ -1,258 +0,0 @@
-> 模板版本:v0.1.1
-
-
-
@react-native-community/datetimepicker
-
-
-
-
-
-
-
-
-
-
-> [!tip] [Github 地址](https://github.com/react-native-oh-library/datetimepicker)
-
-## 安装与使用
-
-进入到工程目录并输入以下命令:
-
-
-
-#### **yarn**
-
-```bash
-yarn add @react-native-oh-tpl/datetimepicker
-```
-
-#### **npm**
-
-```bash
-npm install @react-native-oh-tpl/datetimepicker
-```
-
-
-
-下面的代码展示了这个库的基本使用场景:
-
-```js
-import DateTimePicker from '@react-native-community/datetimepicker';
-
-export const App = () => {
- const [date, setDate] = useState(new Date(1598051730000));
- const [mode, setMode] = useState('date');
- const [show, setShow] = useState(false);
-
- const onChange = (event, selectedDate) => {
- const currentDate = selectedDate;
- setShow(false);
- setDate(currentDate);
- };
-
- const showMode = (currentMode) => {
- setShow(true);
- setMode(currentMode);
- };
-
- const showDatepicker = () => {
- showMode('date');
- };
-
- const showTimepicker = () => {
- showMode('time');
- };
-
- return (
-
-
-
- selected: {date.toLocaleString()}
- {show && (
-
- )}
-
- );
-};
-```
-
-## Link
-
-目前鸿蒙暂不支持 AutoLink,所以 Link 步骤需要手动配置。
-
-首先需要使用 DevEco Studio 打开项目里的鸿蒙工程 `harmony`
-
-### 引入原生端代码
-
-目前有两种方法:
-
-1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
-2. 直接链接源码。
-
-方法一:通过 har 包引入
-打开 `entry/oh-package.json5`,添加以下依赖
-
-```json
-"dependencies": {
- "rnoh": "file:../rnoh",
- "rnoh-datetimepicker": "file:../../node_modules/@react-native-oh-tpl/datetimepicker/harmony/datetimepicker.har"
- }
-```
-
-点击右上角的 `sync` 按钮
-
-或者在终端执行:
-
-```bash
-cd entry
-ohpm install
-```
-
-方法二:直接链接源码
-打开 `entry/oh-package.json5`,添加以下依赖
-
-```json
-"dependencies": {
- "rnoh": "file:../rnoh",
- "rnoh-datetimepicker": "file:../../node_modules/@react-native-oh-tpl/datetimepicker/harmony/datetimepicker"
- }
-```
-
-打开终端,执行:
-
-```bash
-cd entry
-ohpm install --no-link
-```
-
-### 配置 CMakeLists 和引入 datetimepicker
-
-打开 `entry/src/main/cpp/CMakeLists.txt`,添加:
-
-```diff
-project(rnapp)
-cmake_minimum_required(VERSION 3.4.1)
-set(RNOH_APP_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
-set(OH_MODULE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules")
-set(RNOH_CPP_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../react-native-harmony/harmony/cpp")
-
-add_subdirectory("${RNOH_CPP_DIR}" ./rn)
-
-# RNOH_BEGIN: add_package_subdirectories
-add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package)
-+ add_subdirectory("${OH_MODULE_DIR}/rnoh-datetimepicker/src/main/cpp" ./datetimepicker)
-# RNOH_END: add_package_subdirectories
-
-add_library(rnoh_app SHARED
- "./PackageProvider.cpp"
- "${RNOH_CPP_DIR}/RNOHAppNapiBridge.cpp"
-)
-
-target_link_libraries(rnoh_app PUBLIC rnoh)
-
-# RNOH_BEGIN: link_packages
-target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)
-+ target_link_libraries(rnoh_app PUBLIC rnoh_datetime_picker)
-# RNOH_END: link_packages
-```
-
-打开 `entry/src/main/cpp/PackageProvider.cpp`,添加:
-
-```diff
-#include "RNOH/PackageProvider.h"
-#include "SamplePackage.h"
-+ #include "DateTimePickerPackage.h"
-
-using namespace rnoh;
-
-std::vector> PackageProvider::getPackages(Package::Context ctx) {
- return {
- std::make_shared(ctx),
-+ std::make_shared(ctx)
- };
-}
-```
-
-### 在 ArkTs 侧引入 DateTimePicker 组件
-
-打开 `entry/src/main/ets/pages/index.ets`,添加:
-
-```diff
-...
-import { SampleView, SAMPLE_VIEW_TYPE, PropsDisplayer } from "rnoh-sample-package"
-+ import { RNDateTimePicker, DATETIME_PICKER_VIEW_TYPE } from "rnoh-datetimepicker"
-
-@Builder
-function CustomComponentBuilder(ctx: ComponentBuilderContext) {
- if (ctx.componentName === SAMPLE_VIEW_TYPE) {
- SampleView({
- ctx: ctx.rnohContext,
- tag: ctx.tag,
- buildCustomComponent: CustomComponentBuilder
- })
- }
-+ else if (ctx.componentName === DATETIME_PICKER_VIEW_TYPE) {
-+ RNDateTimePicker({
-+ ctx: ctx.rnohContext,
-+ tag: ctx.tag,
-+ buildCustomComponent: CustomComponentBuilder
-+ })
-+ }
- ...
-}
-...
-```
-
-### 运行
-
-点击右上角的 `sync` 按钮
-
-或者在终端执行:
-
-```bash
-cd entry
-ohpm install
-```
-
-然后编译、运行即可。
-
-## 兼容性
-
-要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
-
-请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[<@react-native-oh-library/datetimepicker> Releases](https://github.com/react-native-oh-library/datetimepicker/releases)
-
-## 属性
-
-> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
-
-| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
-| ----------- | ------------------------------------------------------------------------- | -------- | -------- | ------------------------ | ---------------------------------------------------------- |
-| mode | Defines the type of the picker | string | 否 | All | partially (仅支持 date/time 模式) |
-| style | Sets style directly on picker component. | object | 否 | IOS only | yes |
-| display | Defines the visual display of the picker. The default value is "default". | string | 否 | All | partially (支持"default","spinner","compact","inline") |
-| onChange | Date change handler. | function | 否 | All | partially (仅支持 type 为 set 类型) |
-| value | Defines the date or time value used in the component. | Date | 是 | All | partially (仅 mode=date 且 display=spinner 时支持动态设置) |
-| is24Hour | Allows changing of the time picker to a 24-hour format. | bool | 否 | Windows and Android only | yes |
-| maximumDate | Defines the maximum date that can be selected | Date | 否 | All | partially (仅支持在 mode=date 且 display=spinner 时设置) |
-| minimumDate | Defines the minimum date that can be selected. | Date | 否 | All | partially (仅支持在 mode=date 且 display=spinner 时设置) |
-| disabled | If true, the user won't be able to interact with the view. | bool | 否 | IOS only | yes |
-| textColor | Allows changing of the textColor of the date picker. | string | 否 | IOS only | partially (仅支持在 mode=date 且 display=compact 时设置) |
-
-## 遗留问题
-
-- [ ] textColor属性在compact和inline模式改变值后使用禁用操作,颜色会变白色[issue#17](https://github.com/react-native-oh-library/datetimepicker/issues/17)
-
-- [ ] 部分接口,未适配
-
-## 其他
-
-## 开源协议
-
-本项目基于 [The MIT License (MIT)](https://github.com/react-native-oh-library/datetimepicker/blob/harmony/LICENSE) ,请自由地享受和参与开源。
--
Gitee
From 61307a0f0357aefa93484cfed31b793bae36126a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98bug123?= <1518171514@qq.com>
Date: Wed, 27 Dec 2023 10:11:57 +0000
Subject: [PATCH 2/9] =?UTF-8?q?[Issues:=20#I8RTBQ]=20=E6=9B=B4=E6=96=B0vam?=
=?UTF-8?q?ll=E7=89=88datetimepicker=E9=81=97=E7=95=99=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=E8=AF=84=E8=AE=BA+=E5=B1=9E=E6=80=A7=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vmall/datetimepicker.md | 260 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 260 insertions(+)
create mode 100644 vmall/datetimepicker.md
diff --git a/vmall/datetimepicker.md b/vmall/datetimepicker.md
new file mode 100644
index 00000000..1ac52b37
--- /dev/null
+++ b/vmall/datetimepicker.md
@@ -0,0 +1,260 @@
+> 模板版本:v0.1.2
+
+
+
@react-native-community/datetimepicker
+
+
+
+
+
+
+
+
+
+
+> [!tip] [Github 地址](https://github.com/react-native-oh-library/datetimepicker)
+
+## 安装与使用
+
+进入到工程目录并输入以下命令:
+
+
+
+#### **yarn**
+
+```bash
+yarn add @react-native-oh-tpl/datetimepicker
+```
+
+#### **npm**
+
+```bash
+npm install @react-native-oh-tpl/datetimepicker
+```
+
+
+
+下面的代码展示了这个库的基本使用场景:
+
+```js
+import DateTimePicker from '@react-native-community/datetimepicker';
+
+export const App = () => {
+ const [date, setDate] = useState(new Date(1598051730000));
+ const [mode, setMode] = useState('date');
+ const [show, setShow] = useState(false);
+
+ const onChange = (event, selectedDate) => {
+ const currentDate = selectedDate;
+ setShow(false);
+ setDate(currentDate);
+ };
+
+ const showMode = (currentMode) => {
+ setShow(true);
+ setMode(currentMode);
+ };
+
+ const showDatepicker = () => {
+ showMode('date');
+ };
+
+ const showTimepicker = () => {
+ showMode('time');
+ };
+
+ return (
+
+
+
+ selected: {date.toLocaleString()}
+ {show && (
+
+ )}
+
+ );
+};
+```
+
+## Link
+
+目前鸿蒙暂不支持 AutoLink,所以 Link 步骤需要手动配置。
+
+首先需要使用 DevEco Studio 打开项目里的鸿蒙工程 `harmony`
+
+### 引入原生端代码
+
+目前有两种方法:
+
+1. 通过 har 包引入(在 IDE 完善相关功能后该方法会被遗弃,目前首选此方法);
+2. 直接链接源码。
+
+方法一:通过 har 包引入
+打开 `entry/oh-package.json5`,添加以下依赖
+
+```json
+"dependencies": {
+ "rnoh": "file:../rnoh",
+ "rnoh-datetimepicker": "file:../../node_modules/@react-native-oh-tpl/datetimepicker/harmony/datetimepicker.har"
+ }
+```
+
+点击右上角的 `sync` 按钮
+
+或者在终端执行:
+
+```bash
+cd entry
+ohpm install
+```
+
+方法二:直接链接源码
+打开 `entry/oh-package.json5`,添加以下依赖
+
+```json
+"dependencies": {
+ "rnoh": "file:../rnoh",
+ "rnoh-datetimepicker": "file:../../node_modules/@react-native-oh-tpl/datetimepicker/harmony/datetimepicker"
+ }
+```
+
+打开终端,执行:
+
+```bash
+cd entry
+ohpm install --no-link
+```
+
+### 配置 CMakeLists 和引入 datetimepicker
+
+打开 `entry/src/main/cpp/CMakeLists.txt`,添加:
+
+```diff
+project(rnapp)
+cmake_minimum_required(VERSION 3.4.1)
+set(RNOH_APP_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
+set(OH_MODULE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules")
+set(RNOH_CPP_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../react-native-harmony/harmony/cpp")
+
+add_subdirectory("${RNOH_CPP_DIR}" ./rn)
+
+# RNOH_BEGIN: add_package_subdirectories
+add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package)
++ add_subdirectory("${OH_MODULE_DIR}/rnoh-datetimepicker/src/main/cpp" ./datetimepicker)
+# RNOH_END: add_package_subdirectories
+
+add_library(rnoh_app SHARED
+ "./PackageProvider.cpp"
+ "${RNOH_CPP_DIR}/RNOHAppNapiBridge.cpp"
+)
+
+target_link_libraries(rnoh_app PUBLIC rnoh)
+
+# RNOH_BEGIN: link_packages
+target_link_libraries(rnoh_app PUBLIC rnoh_sample_package)
++ target_link_libraries(rnoh_app PUBLIC rnoh_datetime_picker)
+# RNOH_END: link_packages
+```
+
+打开 `entry/src/main/cpp/PackageProvider.cpp`,添加:
+
+```diff
+#include "RNOH/PackageProvider.h"
+#include "SamplePackage.h"
++ #include "DateTimePickerPackage.h"
+
+using namespace rnoh;
+
+std::vector> PackageProvider::getPackages(Package::Context ctx) {
+ return {
+ std::make_shared(ctx),
++ std::make_shared(ctx)
+ };
+}
+```
+
+### 在 ArkTs 侧引入 DateTimePicker 组件
+
+打开 `entry/src/main/ets/pages/index.ets`,添加:
+
+```diff
+...
+import { SampleView, SAMPLE_VIEW_TYPE, PropsDisplayer } from "rnoh-sample-package"
++ import { RNDateTimePicker, DATETIME_PICKER_VIEW_TYPE } from "rnoh-datetimepicker"
+
+@Builder
+function CustomComponentBuilder(ctx: ComponentBuilderContext) {
+ if (ctx.componentName === SAMPLE_VIEW_TYPE) {
+ SampleView({
+ ctx: ctx.rnohContext,
+ tag: ctx.tag,
+ buildCustomComponent: CustomComponentBuilder
+ })
+ }
++ else if (ctx.componentName === DATETIME_PICKER_VIEW_TYPE) {
++ RNDateTimePicker({
++ ctx: ctx.rnohContext,
++ tag: ctx.tag,
++ buildCustomComponent: CustomComponentBuilder
++ })
++ }
+ ...
+}
+...
+```
+
+### 运行
+
+点击右上角的 `sync` 按钮
+
+或者在终端执行:
+
+```bash
+cd entry
+ohpm install
+```
+
+然后编译、运行即可。
+
+## 兼容性
+
+要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。
+
+请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[<@react-native-oh-library/datetimepicker> Releases](https://github.com/react-native-oh-library/datetimepicker/releases)
+
+## 属性
+
+> [!tip] "Platform"列表示该属性在原三方库上支持的平台。
+
+> [!tip] "HarmonyOS Support"列为 yes 表示 HarmonyOS 平台支持该属性;no 则表示不支持;partially 表示部分支持。使用方法跨平台一致,效果对标 iOS 或 Android 的效果。
+
+| Name | Description | Type | Required | Platform | HarmonyOS Support |
+| ----------- | ------------------------------------------------------------------------- | -------- | -------- | ------------------------ | ---------------------------------------------------------- |
+| mode | Defines the type of the picker | string | 否 | All | partially (仅支持 date/time 模式) |
+| style | Sets style directly on picker component. | object | 否 | IOS only | yes |
+| display | Defines the visual display of the picker. The default value is "default". | string | 否 | All | partially (支持"default","spinner","compact","inline") |
+| onChange | Date change handler. | function | 否 | All | partially (仅支持 type 为 set 类型) |
+| value | Defines the date or time value used in the component. | Date | 是 | All | partially (仅 mode=date 且 display=spinner 时支持动态设置) |
+| is24Hour | Allows changing of the time picker to a 24-hour format. | bool | 否 | Windows and Android only | yes |
+| maximumDate | Defines the maximum date that can be selected | Date | 否 | All | partially (仅支持在 mode=date 且 display=spinner 时设置) |
+| minimumDate | Defines the minimum date that can be selected. | Date | 否 | All | partially (仅支持在 mode=date 且 display=spinner 时设置) |
+| disabled | If true, the user won't be able to interact with the view. | bool | 否 | IOS only | yes |
+| textColor | Allows changing of the textColor of the date picker. | string | 否 | IOS only | partially (仅支持在 mode=date 且 display=compact 时设置) |
+
+## 遗留问题
+
+- [ ] textColor属性在compact和inline模式改变值后使用禁用操作,颜色会变白色[issue#17](https://github.com/react-native-oh-library/datetimepicker/issues/17)
+
+- [ ] 部分接口,未适配
+
+## 其他
+
+## 开源协议
+
+本项目基于 [The MIT License (MIT)](https://github.com/react-native-oh-library/datetimepicker/blob/harmony/LICENSE) ,请自由地享受和参与开源。
--
Gitee
From e7630a900e17e6034696ffd593ac10b92738b934 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98bug123?= <1518171514@qq.com>
Date: Fri, 5 Jan 2024 03:23:49 +0000
Subject: [PATCH 3/9] =?UTF-8?q?[Issues:=20#I8TT3D]=20=E6=B7=BB=E5=8A=A0rn-?=
=?UTF-8?q?section-list-get-item-layout=E6=96=87=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
zh-cn/rn-section-list-get-item-layout.md | 80 ++++++++++++++++++++++++
1 file changed, 80 insertions(+)
create mode 100644 zh-cn/rn-section-list-get-item-layout.md
diff --git a/zh-cn/rn-section-list-get-item-layout.md b/zh-cn/rn-section-list-get-item-layout.md
new file mode 100644
index 00000000..b4fda619
--- /dev/null
+++ b/zh-cn/rn-section-list-get-item-layout.md
@@ -0,0 +1,80 @@
+> 模板版本:v0.0.1
+
+
+
rn-section-list-get-item-layout
+
+
+
+
+
+
+
+
+
+
+## 安装与使用
+
+进入到工程目录并输入以下命令:
+
+
+
+#### **yarn**
+
+```bash
+yarn add react-native-section-list-get-item-layout
+```
+#### **npm**
+
+```bash
+npm install react-native-section-list-get-item-layout
+```
+
+
+
+下面的代码展示了这个库的基本使用场景:
+
+```js
+import sectionListGetItemLayout from 'react-native-section-list-get-item-layout'
+
+class MyComponent extends React.Component {
+ constructor(props) {
+ super(props)
+
+ this.getItemLayout = sectionListGetItemLayout({
+ // The height of the row with rowData at the given sectionIndex and rowIndex
+ getItemHeight: (rowData, sectionIndex, rowIndex) => sectionIndex === 0 ? 100 : 50,
+
+ // These four properties are optional
+ getSeparatorHeight: () => 1 / PixelRatio.get(), // The height of your separators
+ getSectionHeaderHeight: () => 20, // The height of your section headers
+ getSectionFooterHeight: () => 10, // The height of your section footers
+ listHeaderHeight: 40, // The height of your list header
+ })
+ }
+
+ render() {
+ return (
+
+ )
+ }
+}
+```
+
+## 约束与限制
+
+## API
+| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
+| ---- | ---- | ---- | -------- | -------- | -------- |
+| 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 | / | Yes |
+
+
+## 遗留问题
+
+## 其他
+
+## 开源协议
+
+本项目基于 [The MIT License (MIT)](https://github.com/jsoendermann/rn-section-list-get-item-layout/blob/master/LICENSE) ,请自由地享受和参与开源。
--
Gitee
From 5a781755e05ebe0c7784064d3574e992f91aa809 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98bug123?= <1518171514@qq.com>
Date: Fri, 5 Jan 2024 03:25:51 +0000
Subject: [PATCH 4/9] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20zh-c?=
=?UTF-8?q?n/rn-section-list-get-item-layout.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
zh-cn/rn-section-list-get-item-layout.md | 80 ------------------------
1 file changed, 80 deletions(-)
delete mode 100644 zh-cn/rn-section-list-get-item-layout.md
diff --git a/zh-cn/rn-section-list-get-item-layout.md b/zh-cn/rn-section-list-get-item-layout.md
deleted file mode 100644
index b4fda619..00000000
--- a/zh-cn/rn-section-list-get-item-layout.md
+++ /dev/null
@@ -1,80 +0,0 @@
-> 模板版本:v0.0.1
-
-
-
rn-section-list-get-item-layout
-
-
-
-
-
-
-
-
-
-
-## 安装与使用
-
-进入到工程目录并输入以下命令:
-
-
-
-#### **yarn**
-
-```bash
-yarn add react-native-section-list-get-item-layout
-```
-#### **npm**
-
-```bash
-npm install react-native-section-list-get-item-layout
-```
-
-
-
-下面的代码展示了这个库的基本使用场景:
-
-```js
-import sectionListGetItemLayout from 'react-native-section-list-get-item-layout'
-
-class MyComponent extends React.Component {
- constructor(props) {
- super(props)
-
- this.getItemLayout = sectionListGetItemLayout({
- // The height of the row with rowData at the given sectionIndex and rowIndex
- getItemHeight: (rowData, sectionIndex, rowIndex) => sectionIndex === 0 ? 100 : 50,
-
- // These four properties are optional
- getSeparatorHeight: () => 1 / PixelRatio.get(), // The height of your separators
- getSectionHeaderHeight: () => 20, // The height of your section headers
- getSectionFooterHeight: () => 10, // The height of your section footers
- listHeaderHeight: 40, // The height of your list header
- })
- }
-
- render() {
- return (
-
- )
- }
-}
-```
-
-## 约束与限制
-
-## API
-| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
-| ---- | ---- | ---- | -------- | -------- | -------- |
-| 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 | / | Yes |
-
-
-## 遗留问题
-
-## 其他
-
-## 开源协议
-
-本项目基于 [The MIT License (MIT)](https://github.com/jsoendermann/rn-section-list-get-item-layout/blob/master/LICENSE) ,请自由地享受和参与开源。
--
Gitee
From f4c06e4d2d18781d0ea2a54ceacdf83961ee23be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98bug123?= <1518171514@qq.com>
Date: Fri, 5 Jan 2024 03:30:28 +0000
Subject: [PATCH 5/9] =?UTF-8?q?[Issues:=20#I8TT3D]=20=E6=B7=BB=E5=8A=A0rn-?=
=?UTF-8?q?section-list-get-item-layout=E6=96=87=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
zh-cn/rn-section-list-get-item-layout.md | 80 ++++++++++++++++++++++++
1 file changed, 80 insertions(+)
create mode 100644 zh-cn/rn-section-list-get-item-layout.md
diff --git a/zh-cn/rn-section-list-get-item-layout.md b/zh-cn/rn-section-list-get-item-layout.md
new file mode 100644
index 00000000..12ed7b3d
--- /dev/null
+++ b/zh-cn/rn-section-list-get-item-layout.md
@@ -0,0 +1,80 @@
+> 模板版本:v0.0.1
+
+
+
rn-section-list-get-item-layout
+
+
+
+
+
+
+
+
+
+
+## 安装与使用
+
+进入到工程目录并输入以下命令:
+
+
+
+#### **yarn**
+
+```bash
+yarn add react-native-section-list-get-item-layout
+```
+#### **npm**
+
+```bash
+npm install react-native-section-list-get-item-layout
+```
+
+
+
+下面的代码展示了这个库的基本使用场景:
+
+```js
+import sectionListGetItemLayout from 'react-native-section-list-get-item-layout'
+
+class MyComponent extends React.Component {
+ constructor(props) {
+ super(props)
+
+ this.getItemLayout = sectionListGetItemLayout({
+ // The height of the row with rowData at the given sectionIndex and rowIndex
+ getItemHeight: (rowData, sectionIndex, rowIndex) => sectionIndex === 0 ? 100 : 50,
+
+ // These four properties are optional
+ getSeparatorHeight: () => 1 / PixelRatio.get(), // The height of your separators
+ getSectionHeaderHeight: () => 20, // The height of your section headers
+ getSectionFooterHeight: () => 10, // The height of your section footers
+ listHeaderHeight: 40, // The height of your list header
+ })
+ }
+
+ render() {
+ return (
+
+ )
+ }
+}
+```
+
+## 约束与限制
+
+## API
+| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
+| ---- | ---- | ---- | -------- | -------- | -------- |
+| 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 | / | Yes |
+
+
+## 遗留问题
+
+## 其他
+
+## 开源协议
+
+本项目基于 [The MIT License (MIT)](https://github.com/jsoendermann/rn-section-list-get-item-layout/blob/master/LICENSE) ,请自由地享受和参与开源。
--
Gitee
From 9ef47d9507dd538f87af09513970ee6b81a9ce99 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98bug123?= <1518171514@qq.com>
Date: Fri, 5 Jan 2024 09:56:28 +0000
Subject: [PATCH 6/9] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20zh-c?=
=?UTF-8?q?n/rn-section-list-get-item-layout.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
zh-cn/rn-section-list-get-item-layout.md | 80 ------------------------
1 file changed, 80 deletions(-)
delete mode 100644 zh-cn/rn-section-list-get-item-layout.md
diff --git a/zh-cn/rn-section-list-get-item-layout.md b/zh-cn/rn-section-list-get-item-layout.md
deleted file mode 100644
index 12ed7b3d..00000000
--- a/zh-cn/rn-section-list-get-item-layout.md
+++ /dev/null
@@ -1,80 +0,0 @@
-> 模板版本:v0.0.1
-
-
-
rn-section-list-get-item-layout
-
-
-
-
-
-
-
-
-
-
-## 安装与使用
-
-进入到工程目录并输入以下命令:
-
-
-
-#### **yarn**
-
-```bash
-yarn add react-native-section-list-get-item-layout
-```
-#### **npm**
-
-```bash
-npm install react-native-section-list-get-item-layout
-```
-
-
-
-下面的代码展示了这个库的基本使用场景:
-
-```js
-import sectionListGetItemLayout from 'react-native-section-list-get-item-layout'
-
-class MyComponent extends React.Component {
- constructor(props) {
- super(props)
-
- this.getItemLayout = sectionListGetItemLayout({
- // The height of the row with rowData at the given sectionIndex and rowIndex
- getItemHeight: (rowData, sectionIndex, rowIndex) => sectionIndex === 0 ? 100 : 50,
-
- // These four properties are optional
- getSeparatorHeight: () => 1 / PixelRatio.get(), // The height of your separators
- getSectionHeaderHeight: () => 20, // The height of your section headers
- getSectionFooterHeight: () => 10, // The height of your section footers
- listHeaderHeight: 40, // The height of your list header
- })
- }
-
- render() {
- return (
-
- )
- }
-}
-```
-
-## 约束与限制
-
-## API
-| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
-| ---- | ---- | ---- | -------- | -------- | -------- |
-| 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 | / | Yes |
-
-
-## 遗留问题
-
-## 其他
-
-## 开源协议
-
-本项目基于 [The MIT License (MIT)](https://github.com/jsoendermann/rn-section-list-get-item-layout/blob/master/LICENSE) ,请自由地享受和参与开源。
--
Gitee
From ff35952af6c8f7d2f0a80ff8f2f5e2f4f006c52a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98bug123?= <1518171514@qq.com>
Date: Fri, 5 Jan 2024 09:57:10 +0000
Subject: [PATCH 7/9] =?UTF-8?q?[Issues:=20#I8TT3D]=20=E6=B7=BB=E5=8A=A0rn-?=
=?UTF-8?q?section-list-get-item-layout=E6=96=87=E6=A1=A3=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E8=AF=84=E8=AE=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
zh-cn/rn-section-list-get-item-layout.md | 88 ++++++++++++++++++++++++
1 file changed, 88 insertions(+)
create mode 100644 zh-cn/rn-section-list-get-item-layout.md
diff --git a/zh-cn/rn-section-list-get-item-layout.md b/zh-cn/rn-section-list-get-item-layout.md
new file mode 100644
index 00000000..6d326356
--- /dev/null
+++ b/zh-cn/rn-section-list-get-item-layout.md
@@ -0,0 +1,88 @@
+> 模板版本:v0.0.1
+
+
+
rn-section-list-get-item-layout
+
+
+
+
+
+
+
+
+
+
+>[!tip] [Github 地址](https://github.com/jsoendermann/rn-section-list-get-item-layout)
+
+## 安装与使用
+
+进入到工程目录并输入以下命令:
+
+
+
+#### **yarn**
+
+```bash
+yarn add react-native-section-list-get-item-layout
+```
+#### **npm**
+
+```bash
+npm install react-native-section-list-get-item-layout
+```
+
+
+
+下面的代码展示了这个库的基本使用场景:
+
+```js
+import sectionListGetItemLayout from 'react-native-section-list-get-item-layout'
+
+class MyComponent extends React.Component {
+ constructor(props) {
+ super(props)
+
+ this.getItemLayout = sectionListGetItemLayout({
+ // The height of the row with rowData at the given sectionIndex and rowIndex
+ getItemHeight: (rowData, sectionIndex, rowIndex) => sectionIndex === 0 ? 100 : 50,
+
+ // These four properties are optional
+ getSeparatorHeight: () => 1 / PixelRatio.get(), // The height of your separators
+ getSectionHeaderHeight: () => 20, // The height of your section headers
+ getSectionFooterHeight: () => 10, // The height of your section footers
+ listHeaderHeight: 40, // The height of your list header
+ })
+ }
+
+ render() {
+ return (
+
+ )
+ }
+}
+```
+
+## 约束与限制
+
+### 兼容性
+
+ 在下述版本验证通过:
+
+ 1. IDE:DevEco Studio 4.1.3.313;SDK:OpenHarmony(api11) 4.1.0.52;测试设备:Mate40 Pro(NOH-AN00);ROM:2.0.0.51(SP22C00E52R1P17log);RNOH:0.72.11
+
+## API
+| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
+| ---- | ---- | ---- | -------- | -------- | -------- |
+| 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 | / | Yes |
+
+
+## 遗留问题
+
+## 其他
+
+## 开源协议
+
+本项目基于 [The MIT License (MIT)](https://github.com/jsoendermann/rn-section-list-get-item-layout/blob/master/LICENSE) ,请自由地享受和参与开源。
--
Gitee
From 1b1b83fa11fde15c5cb151ed267be3f33a92d924 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98bug123?= <1518171514@qq.com>
Date: Fri, 5 Jan 2024 10:03:42 +0000
Subject: [PATCH 8/9] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20zh-c?=
=?UTF-8?q?n/rn-section-list-get-item-layout.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
zh-cn/rn-section-list-get-item-layout.md | 88 ------------------------
1 file changed, 88 deletions(-)
delete mode 100644 zh-cn/rn-section-list-get-item-layout.md
diff --git a/zh-cn/rn-section-list-get-item-layout.md b/zh-cn/rn-section-list-get-item-layout.md
deleted file mode 100644
index 6d326356..00000000
--- a/zh-cn/rn-section-list-get-item-layout.md
+++ /dev/null
@@ -1,88 +0,0 @@
-> 模板版本:v0.0.1
-
-
-
rn-section-list-get-item-layout
-
-
-
-
-
-
-
-
-
-
->[!tip] [Github 地址](https://github.com/jsoendermann/rn-section-list-get-item-layout)
-
-## 安装与使用
-
-进入到工程目录并输入以下命令:
-
-
-
-#### **yarn**
-
-```bash
-yarn add react-native-section-list-get-item-layout
-```
-#### **npm**
-
-```bash
-npm install react-native-section-list-get-item-layout
-```
-
-
-
-下面的代码展示了这个库的基本使用场景:
-
-```js
-import sectionListGetItemLayout from 'react-native-section-list-get-item-layout'
-
-class MyComponent extends React.Component {
- constructor(props) {
- super(props)
-
- this.getItemLayout = sectionListGetItemLayout({
- // The height of the row with rowData at the given sectionIndex and rowIndex
- getItemHeight: (rowData, sectionIndex, rowIndex) => sectionIndex === 0 ? 100 : 50,
-
- // These four properties are optional
- getSeparatorHeight: () => 1 / PixelRatio.get(), // The height of your separators
- getSectionHeaderHeight: () => 20, // The height of your section headers
- getSectionFooterHeight: () => 10, // The height of your section footers
- listHeaderHeight: 40, // The height of your list header
- })
- }
-
- render() {
- return (
-
- )
- }
-}
-```
-
-## 约束与限制
-
-### 兼容性
-
- 在下述版本验证通过:
-
- 1. IDE:DevEco Studio 4.1.3.313;SDK:OpenHarmony(api11) 4.1.0.52;测试设备:Mate40 Pro(NOH-AN00);ROM:2.0.0.51(SP22C00E52R1P17log);RNOH:0.72.11
-
-## API
-| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
-| ---- | ---- | ---- | -------- | -------- | -------- |
-| 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 | / | Yes |
-
-
-## 遗留问题
-
-## 其他
-
-## 开源协议
-
-本项目基于 [The MIT License (MIT)](https://github.com/jsoendermann/rn-section-list-get-item-layout/blob/master/LICENSE) ,请自由地享受和参与开源。
--
Gitee
From be4850dc760c2c79ed600f296e08e910dcf6fe23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98bug123?= <1518171514@qq.com>
Date: Fri, 5 Jan 2024 10:04:16 +0000
Subject: [PATCH 9/9] =?UTF-8?q?[Issues:=20#I8TT3D]=20=E6=B7=BB=E5=8A=A0rn-?=
=?UTF-8?q?section-list-get-item-layout=E6=96=87=E6=A1=A3=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E8=AF=84=E8=AE=BA2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
zh-cn/rn-section-list-get-item-layout.md | 91 ++++++++++++++++++++++++
1 file changed, 91 insertions(+)
create mode 100644 zh-cn/rn-section-list-get-item-layout.md
diff --git a/zh-cn/rn-section-list-get-item-layout.md b/zh-cn/rn-section-list-get-item-layout.md
new file mode 100644
index 00000000..d855becb
--- /dev/null
+++ b/zh-cn/rn-section-list-get-item-layout.md
@@ -0,0 +1,91 @@
+> 模板版本:v0.1.2
+
+
+
rn-section-list-get-item-layout
+
+
+
+
+
+
+
+
+
+
+>[!tip] [Github 地址](https://github.com/jsoendermann/rn-section-list-get-item-layout)
+
+## 安装与使用
+
+进入到工程目录并输入以下命令:
+
+
+
+#### **yarn**
+
+```bash
+yarn add react-native-section-list-get-item-layout
+```
+#### **npm**
+
+```bash
+npm install react-native-section-list-get-item-layout
+```
+
+
+
+下面的代码展示了这个库的基本使用场景:
+
+```js
+import sectionListGetItemLayout from 'react-native-section-list-get-item-layout'
+
+class MyComponent extends React.Component {
+ constructor(props) {
+ super(props)
+
+ this.getItemLayout = sectionListGetItemLayout({
+ // The height of the row with rowData at the given sectionIndex and rowIndex
+ getItemHeight: (rowData, sectionIndex, rowIndex) => sectionIndex === 0 ? 100 : 50,
+
+ // These four properties are optional
+ getSeparatorHeight: () => 1 / PixelRatio.get(), // The height of your separators
+ getSectionHeaderHeight: () => 20, // The height of your section headers
+ getSectionFooterHeight: () => 10, // The height of your section footers
+ listHeaderHeight: 40, // The height of your list header
+ })
+ }
+
+ render() {
+ return (
+
+ )
+ }
+}
+```
+
+## 约束与限制
+
+### 兼容性
+
+ 在下述版本验证通过:
+
+ 1. IDE:DevEco Studio 4.1.3.313;SDK:OpenHarmony(api11) 4.1.0.52;测试设备:Mate40 Pro(NOH-AN00);ROM:2.0.0.51(SP22C00E52R1P17log);RNOH:0.72.11
+
+## API
+
+详情见 [rn-section-list-get-item-layout源库地址](https://github.com/jsoendermann/rn-section-list-get-item-layout)
+
+| 名称 | 说明 | 类型 | 是否必填 | 原库平台 | 鸿蒙支持 |
+| ---- | ---- | ---- | -------- | -------- | -------- |
+| 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 | / | Yes |
+
+
+## 遗留问题
+
+## 其他
+
+## 开源协议
+
+本项目基于 [The MIT License (MIT)](https://github.com/jsoendermann/rn-section-list-get-item-layout/blob/master/LICENSE) ,请自由地享受和参与开源。
--
Gitee