From c2d9e2679699225a1442ea6b78451ac0b305355a Mon Sep 17 00:00:00 2001 From: gitee liuxian <597426220@qq.com> Date: Thu, 7 Aug 2025 15:30:58 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#ICRUCE]=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A00.77=202=E4=B8=AA=E4=B8=89=E6=96=B9=E5=BA=93=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/react-native-amap-geolocation.md | 30 ++++++++++++++++++++++++-- zh-cn/react-native-calendars.md | 30 +++++++++++++++++++++++++- 2 files changed, 57 insertions(+), 3 deletions(-) diff --git a/zh-cn/react-native-amap-geolocation.md b/zh-cn/react-native-amap-geolocation.md index 58aa7f9fb..b23f1fc54 100644 --- a/zh-cn/react-native-amap-geolocation.md +++ b/zh-cn/react-native-amap-geolocation.md @@ -19,7 +19,12 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-amap-geolocation Releases](https://github.com/react-native-oh-library/react-native-amap-geolocation/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息,并下载适用版本的 tgz 包: + +| 三方库版本 | 发布信息 | 支持RN版本 | +| ----------- | ------------------------------------------------------------ | ---------- | +| 1.2.3-0.0.5 | [@react-native-oh-tpl/react-native-amap-geolocation](https://github.com/react-native-oh-library/react-native-image-capinsets-next/releases) | 0.72 | +| 1.2.3-0.0.5 | [@react-native-oh-ohos/react-native-amap-geolocation]() | 0.77 | 进入到工程目录并输入以下命令: @@ -27,16 +32,32 @@ #### **npm** +v1.2.3-0.0.5 + ```bash npm install @react-native-oh-tpl/react-native-amap-geolocation ``` +v1.2.3-0.0.5 + +``` +npm install @react-native-oh-ohos/react-native-amap-geolocation +``` + #### **yarn** +v1.2.3-0.0.5 + ```bash yarn add @react-native-oh-tpl/react-native-amap-geolocation ``` +v1.2.3-0.0.5 + +```bash +yarn add @react-native-oh-ohos/react-native-amap-geolocation +``` + 下面的代码展示了这个库的基本使用场景: @@ -362,7 +383,12 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-amap-geolocation Releases](https://github.com/react-native-oh-library/react-native-amap-geolocation/releases) +请到三方库的 Releases 发布地址查看配套的版本信息,并下载适用版本的 tgz 包: + +| 三方库版本 | 发布信息 | 支持RN版本 | +| ----------- | ------------------------------------------------------------ | ---------- | +| 1.2.3-0.0.5 | [@react-native-oh-tpl/react-native-amap-geolocation](https://github.com/react-native-oh-library/react-native-image-capinsets-next/releases) | 0.72 | +| 1.2.3-0.0.5 | [@react-native-oh-ohos/react-native-amap-geolocation]() | 0.77 | ### 权限要求 diff --git a/zh-cn/react-native-calendars.md b/zh-cn/react-native-calendars.md index 07ec0073f..be514356d 100644 --- a/zh-cn/react-native-calendars.md +++ b/zh-cn/react-native-calendars.md @@ -16,18 +16,39 @@ ## 安装与使用 +| 三方库版本 | 支持RN版本 | +| ---------- | ---------- | +| 1.1304.1 | 0.72 | +| 1.1313.0 | 0.77 | + #### **npm** +v1.1304.1 + ```bash npm install --save react-native-calendars@1.1304.1 ``` +v1.1313.0 + +```bash +npm install --save react-native-calendars@1.1313.0 +``` + #### **yarn** +v1.1304.1 + ```bash yarn install --react-native-calendars@1.1304.1 ``` +v1.1313.0 + +```bash +yarn install --react-native-calendars@1.1313.0 +``` + 下面的代码展示了这个库的基本使用场景: ```js @@ -201,6 +222,11 @@ export default MySvgComponent; | onPressArrowRight | Handler which gets executed when press right arrow. It receive a callback to go to the next month | function | no | All | yes | | renderArrow | Replace default arrows with custom ones (direction: 'left','right') | function | no | All | yes | | renderHeader | Replace default title with custom one | function | no | All | yes | +| firstDay | Determines the first day of the week | function | no | All | yes | +| displayLoadingIndicator | Shows a loading indicator when data is being fetched or processed | function | no | All | yes | +| showWeekNumbers | Displays week numbers alongside the calendar | boolean | no | All | yes | + + ### CalendarList @@ -214,6 +240,7 @@ export default MySvgComponent; | calendarWidth | Used when calendar scroll is horizontal, (when pagingEnabled = false) | number | no | All | yes | | staticHeader | Whether to use a fixed header that doesn't scroll (when horizontal = true) | boolean | no | All | yes | | showScrollIndicator | Whether to enable or disable vertical / horizontal scroll indicator | boolean | no | All | yes | +| contentContainerStyle | Customizes the style of the CalendarList content container | ViewStyle | no | All | yes | ### CalendarProvider @@ -228,8 +255,9 @@ export default MySvgComponent; | disabledOpacity | The opacity for the disabled today button (0-1) | number | no | All | yes | | onDateChanged | Handler which gets executed when the date changes | function | no | All | yes | | onMonthChange | Handler which gets executed when the month changes changes | function | no | All | yes | +| disableAutoDaySelection | Automatic selection of the initial date when the calendar is initialized | boolean | no | All | yes | -### ExpandableCalendar +### ExpandableCalendar A | Name | Description | Type | Required | Platform | HarmonyOS Support | | ------------------------ | ---------------------------------------------------------------------------------------------------------- | -------------------- | -------- | -------- | ----------------- | -- Gitee