From 4322243ae34fb814f87c3176cbc0a0915b07de0b Mon Sep 17 00:00:00 2001 From: liuyihai2002 Date: Wed, 28 Jan 2026 19:13:48 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=B0=E5=A2=9Ereact-navigation/nati?= =?UTF-8?q?ve-stack=200.82=E6=A1=86=E6=9E=B6=E9=80=82=E9=85=8D=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuyihai2002 --- en/react-navigation-native-stack.md | 18 ++++++++++-------- zh-cn/react-navigation-native-stack.md | 18 ++++++++++-------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/en/react-navigation-native-stack.md b/en/react-navigation-native-stack.md index 847a9b63..df3c97eb 100644 --- a/en/react-navigation-native-stack.md +++ b/en/react-navigation-native-stack.md @@ -16,10 +16,11 @@ The repository for this third-party library has been migrated to Gitcode, and it now supports direct download from npm. The new package name is: `@react-native-ohos/native-stack`. The specific version relationships are as follows: -| Version | Package Name | Repository | Release | Version for RN | -| ------------------------------ | ---------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | ---------- | -| 6.9.26 | @react-native-oh-tpl/native-stack | [Github](https://github.com/react-native-oh-library/react-navigation/tree/sig/packages/native-stack) | [Github Releases](https://github.com/react-native-oh-library/react-navigation/releases) | 0.72 | -| 7.3.11 | @react-native-ohos/native-stack | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-navigation/tree/br_rnoh0.77/packages/native-stack) | [GitCode Releases]() | 0.77 | +| Name | Version | Release Information | Supported RN Version | Supported Autolink | Compile API Version | Community Baseline Version | npm Address | +| ------------ | ------------ | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- | +| @react-native-ohos/native-stack | ~7.4.0 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-navigation/releases) | 0.82 | 否 | API12+ | 7.3.22 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/native-stack) | +| @react-native-ohos/native-stack | ~7.3.11 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-navigation/releases) | 0.77 | 否 | API12+ | 7.3.10 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/native-stack) | +| @react-native-oh-tpl/native-stack | 6.9.26-0.0.2 | [Github Releases](https://github.com/react-native-oh-library/react-navigation/releases) | 0.72 | 否 | API12+ | 6.9.26 | [Npm Address](https://www.npmjs.com/package/@react-native-oh-tpl/native-stack) | For older versions that have not been released to npm, please refer to the [Installation Guide](/zh-cn/tgz-usage.md) to install the tgz package @@ -35,7 +36,7 @@ Go to the project directory and execute the following instruction: # for RN0.72 npm install @react-native-oh-tpl/native-stack -# for RN0.77 +# for RN0.77/82 npm install @react-native-ohos/native-stack ``` @@ -45,7 +46,7 @@ npm install @react-native-ohos/native-stack # for RN0.72 yarn install @react-native-oh-tpl/native-stack -# for RN0.77 +# for RN0.77/82 yarn install @react-native-ohos/native-stack ``` @@ -155,6 +156,7 @@ Verified in the following version: 1. RNOH:0.72.20; SDK:HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5.0.3.200; ROM:3.0.0.18; 2. RNOH:0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.868; ROM: 6.0.0.112; +3. RNOH:0.82.1; SDK: HarmonyOS 6.0.1 Release SDK; IDE: DevEco Studio 6.0.1 Release; ROM:6.0.0.120 SP7; ## Properties @@ -211,8 +213,8 @@ The following attributes have been verified. For more details on the attributes, | fullScreenGestureEnabled | Whether the gesture to dismiss should work on the whole screen. Using gesture to dismiss with this option results in the same transition animation as simple_push. This behavior can be changed by setting customAnimationOnGesture prop. Achieving the default iOS animation isn't possible due to platform limitations. Defaults to false. | boolean | no | iOS | no | | gestureEnabled | Whether you can use gestures to dismiss this screen. Defaults to true. | boolean | no | iOS | no | | animationTypeForReplace | The type of animation to use when this screen replaces another screen. Defaults to pop. | 'push'|'pop' | no | Android,iOS | no | -| animation | How the screen should animate when pushed or popped. | 'default'|'fade'|'fade_from_bottom'|'fade_from_bottom'|'simple_push'|'slide_from_bottom'|'slide_from_right'|'slide_from_left'|'none' | no | Android,iOS | no | -| presentation | How should the screen be presented. | 'card'|'modal'|'transparentModal'|'containedModal'|'containedModal'|'fullScreenModal'|'formSheet' | no | Android,iOS | partially('card'/'transparentModal') | +| animation | How the screen should animate when pushed or popped. | 'default'|'fade'|'fade_from_bottom'|'simple_push'|'slide_from_bottom'|'slide_from_right'|'slide_from_left'|'none' | no | Android,iOS | no | +| presentation | How should the screen be presented. | 'card'|'modal'|'transparentModal'|'containedModal'|'fullScreenModal'|'formSheet' | no | Android,iOS | partially('card'/'transparentModal') | | orientation | The display orientation to use for the screen. | 'default'|'all'|'portrait'|'portrait_up'|'portrait_down'|'landscape'|'landscape_left'|'landscape_left' | no | Android,iOS | no | | autoHideHomeIndicator | Boolean indicating whether the home indicator should prefer to stay hidden. Defaults to false. | boolean | no | iOS | no | | gestureDirection | Sets the direction in which you should swipe to dismiss the screen. | 'vertical '|'horizontal ' | no | iOS | no | diff --git a/zh-cn/react-navigation-native-stack.md b/zh-cn/react-navigation-native-stack.md index 5928ecef..4c279610 100644 --- a/zh-cn/react-navigation-native-stack.md +++ b/zh-cn/react-navigation-native-stack.md @@ -16,10 +16,11 @@ 该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/native-stack`,具体版本所属关系如下: -| Version | Package Name | Repository | Release | Version for RN | -| ------------------------------ | ---------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | ---------- | -| 6.9.26 | @react-native-oh-tpl/native-stack | [Github](https://github.com/react-native-oh-library/react-navigation/tree/sig/packages/native-stack) | [Github Releases](https://github.com/react-native-oh-library/react-navigation/releases) | 0.72 | -| 7.3.11 | @react-native-ohos/native-stack | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-navigation/tree/br_rnoh0.77/packages/native-stack) | [GitCode Releases]() | 0.77 | +| 三方库名称 | 三方库版本 | 发布信息 | 支持RN版本 | Autolink | 编译API版本 | 社区基线版本 | npm地址 | +| ------------ | ------------ | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- | +| @react-native-ohos/native-stack | ~7.4.0 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-navigation/releases) | 0.82 | 否 | API12+ | 7.3.22 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/native-stack) | +| @react-native-ohos/native-stack | ~7.3.11 | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-navigation/releases) | 0.77 | 否 | API12+ | 7.3.10 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/native-stack) | +| @react-native-oh-tpl/native-stack | 6.9.26-0.0.2 | [Github Releases](https://github.com/react-native-oh-library/react-navigation/releases) | 0.72 | 否 | API12+ | 6.9.26 | [Npm Address](https://www.npmjs.com/package/@react-native-oh-tpl/native-stack) | 对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 @@ -35,7 +36,7 @@ # for RN0.72 npm install @react-native-oh-tpl/native-stack -# for RN0.77 +# for RN0.77/82 npm install @react-native-ohos/native-stack ``` @@ -45,7 +46,7 @@ npm install @react-native-ohos/native-stack # for RN0.72 yarn install @react-native-oh-tpl/native-stack -# for RN0.77 +# for RN0.77/82 yarn install @react-native-ohos/native-stack ``` @@ -155,6 +156,7 @@ export default function App() { 1. RNOH:0.72.20; SDK:HarmonyOS NEXT Developer Beta1; IDE:DevEco Studio 5.0.3.200; ROM:3.0.0.18; 2. RNOH:0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.868; ROM: 6.0.0.112; +3. RNOH:0.82.1; SDK: HarmonyOS 6.0.1 Release SDK; IDE: DevEco Studio 6.0.1 Release; ROM:6.0.0.120 SP7; ## 属性 @@ -212,8 +214,8 @@ export default function App() { | fullScreenGestureEnabled | 关闭手势是否适用于整个屏幕。使用手势来关闭此选项会产生与 simple_push 相同的过渡动画。可以通过设置 customAnimationOnGesture 属性来更改此行为。由于平台限制,无法实现默认的 iOS 动画。默认为 false。 | boolean | no | iOS | no | | gestureEnabled | 是否可以使用手势关闭此屏幕。默认为 true。 | boolean | no | iOS | no | | animationTypeForReplace | 当此屏幕替换另一个屏幕时要使用的动画类型。默认为弹出。 | 'push'|'pop' | no | Android,iOS | no | -| animation | 按下或弹出时屏幕应如何呈现动画。 | 'default'|'fade'|'fade_from_bottom'|'fade_from_bottom'|'simple_push'|'slide_from_bottom'|'slide_from_right'|'slide_from_left'|'none' | no | Android,iOS | no | -| presentation | 画面应该如何呈现。 | 'card'|'modal'|'transparentModal'|'containedModal'|'containedModal'|'fullScreenModal'|'formSheet' | no | Android,iOS | partially('card'/'transparentModal') | +| animation | 按下或弹出时屏幕应如何呈现动画。 | 'default'|'fade'|'fade_from_bottom'|'simple_push'|'slide_from_bottom'|'slide_from_right'|'slide_from_left'|'none' | no | Android,iOS | no | +| presentation | 画面应该如何呈现。 | 'card'|'modal'|'transparentModal'|'containedModal'|'fullScreenModal'|'formSheet' | no | Android,iOS | partially('card'/'transparentModal') | | orientation | 屏幕使用的显示方向。 | 'default'|'all'|'portrait'|'portrait_up'|'portrait_down'|'landscape'|'landscape_left'|'landscape_left' | no | Android,iOS | no | | autoHideHomeIndicator | 指示主页指示器是否应该保持隐藏的布尔值。默认为 false。 | boolean | no | iOS | no | | gestureDirection | 设置滑动以关闭屏幕的方向。 | 'vertical '|'horizontal ' | no | iOS | no | -- Gitee