diff --git a/en/lottie-react-native.md b/en/lottie-react-native.md index 01b301a6c562c94f17aedb1ab5a5267788878ff2..8d839ed2bda9d43d240404ff40144f24416d9ab8 100644 --- a/en/lottie-react-native.md +++ b/en/lottie-react-native.md @@ -73,7 +73,7 @@ export default App; ## Link -Version >= @react-native-ohos/lottie-react-native@6.4.2 now supports Autolink without requiring manual configuration. +Version >= @react-native-ohos/lottie-react-native@6.4.2 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md The 0.72 branch supports full Autolinking functionality starting from the RNOH 0.72.94 version (corresponding to the @react-native-oh/react-native-harmony-cli version 0.0.40). diff --git a/en/react-native-async-storage-async-storage.md b/en/react-native-async-storage-async-storage.md index aad2459a7854c3cf3163e540da6534ffd483cc42..3c0529053773c86ff615500bf29a2fe4d1ee993b 100644 --- a/en/react-native-async-storage-async-storage.md +++ b/en/react-native-async-storage-async-storage.md @@ -118,7 +118,7 @@ export default function App() { ## Link -Version >= @react-native-ohos/async-storage@1.21.1 now supports Autolink without requiring manual configuration. +Version >= @react-native-ohos/async-storage@1.21.1 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Currently, Version <= @react-native-oh-tpl/async-storage@1.21.0-0.2.2@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. @@ -259,7 +259,7 @@ Then build and run the code. To use this repository, you need to use the correct React-Native and RNOH versions. In addition, you need to use DevEco Studio and the ROM on your phone. -Check the release version information in the release address of the third-party library: [@react-native-ohos/async-storage Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/release) +Check the release version information in the release address of the third-party library: [@react-native-ohos/async-storage Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/releases) ## APIs diff --git a/en/react-native-blob-util.md b/en/react-native-blob-util.md index 49fcd3d86ca1eb15eed54630a5ca6c83e09b8304..8a4b7ccf1c915f4aa1511806c33a5989852e4985 100644 --- a/en/react-native-blob-util.md +++ b/en/react-native-blob-util.md @@ -406,7 +406,7 @@ If this repository has been adapted to `Codegen`, generate the bridge code of th ## Link -Version >= @react-native-ohos/react-native-blob-util@0.19.8 now supports Autolink without requiring manual configuration. +Version >= @react-native-ohos/react-native-blob-util@0.19.8 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Currently, Version <= @react-native-oh-tpl/react-native-blob-util@0.19.7@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. diff --git a/en/react-native-cameraroll.md b/en/react-native-cameraroll.md index 9ec808c04202881e50710ef67055562e21df3a58..5579f4656e920252147dc833fc17b3ee9c497150 100644 --- a/en/react-native-cameraroll.md +++ b/en/react-native-cameraroll.md @@ -79,7 +79,7 @@ If this repository has been adapted to `Codegen`, generate the bridge code of th ## Link -Version >= @react-native-ohos/camera-roll@7.8.4 now supports Autolink without requiring manual configuration. +Version >= @react-native-ohos/camera-roll@7.8.4 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Currently, Version <= @react-native-oh-tpl/camera-roll@7.8.3-0.1.5@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. diff --git a/en/react-native-community-netinfo.md b/en/react-native-community-netinfo.md index 3962255055bf2b72d8a3c7e10de5bb2f8b6f1365..f292539c7713da3834258410e790958d0dbd6118 100644 --- a/en/react-native-community-netinfo.md +++ b/en/react-native-community-netinfo.md @@ -82,7 +82,7 @@ export default App; ## Link -Version >= @react-native-ohos/netinfo@11.1.1 now supports Autolink without requiring manual configuration. +Version >= @react-native-ohos/netinfo@11.1.1 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Currently, Version <= @react-native-oh-tpl/netinfo@11.1.0-0.0.8@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. diff --git a/en/react-native-fs.md b/en/react-native-fs.md index bd89004fa2ef48a67fa8258975905de77fd3be32..65300ab5b8c2fe12b21dc1e8ea3d87b461f07a99 100644 --- a/en/react-native-fs.md +++ b/en/react-native-fs.md @@ -4,12 +4,14 @@

react-native-fs

-This project is based on [react-native-fs@2.20.0](https://github.com/itinance/react-native-fs/tree/v2.20.0)。 +> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-fs) + +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/react-native-fs`, After introducing the new version of the third-party library, The version correspondence details are as follows: | Version | Package Name | Repository | Release | | --------------------------- | ------------------------------------ | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | <= 2.20.0-0.1.14@deprecated | @react-native-oh-tpl/react-native-fs | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-fs) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-fs/releases) | -| >= 2.20.1 | @react-native-ohos/react-native-fs | [Gitee](https://gitcode.com/openharmony-sig/rntpc_react-native-fs) | [Gitee Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-fs/releases) | +| >= 2.20.1 | @react-native-ohos/react-native-fs | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-fs) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-fs/releases) | ## 1. Installation and Usage @@ -117,7 +119,7 @@ export default App; ``` ## 2. Manual Link -Version >= @react-native-ohos/react-native-fs@2.20.2 now supports Autolink without requiring manual configuration. +Version >= @react-native-ohos/react-native-fs@2.20.2 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Currently, Version < @react-native-ohos/react-native-fs@2.20.2,Version <= @react-native-oh-tpl/react-native-fs@2.20.0-0.1.14@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. @@ -260,7 +262,7 @@ Then build and run the code. ### 3.1 Compatibility -Check the release version information in the release address of the third-party library:[@react-native-ohos/react-native-fs Releases](https://gitee.com/openharmony-sig/rntpc_react-native-fs/releases) +Check the release version information in the release address of the third-party library:[@react-native-ohos/react-native-fs Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-fs/releases) ## 4. Static Methods diff --git a/en/react-native-gesture-handler.md b/en/react-native-gesture-handler.md index 9c36849dfad291315c3433f2345d0b0a3e2bd57c..483f496193e134c2a1e21552fbb3448a0ffd3176 100644 --- a/en/react-native-gesture-handler.md +++ b/en/react-native-gesture-handler.md @@ -14,9 +14,16 @@ > [!TIP] [Github address](https://github.com/react-native-oh-library/react-native-harmony-gesture-handler) +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/react-native-gesture-handler`, After introducing the new version of the third-party library, The version correspondence details are as follows: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 2.14.17@deprecated | @react-native-oh-tpl/react-native-gesture-handler | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-gesture-handler) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-gesture-handler/releases) | +| >= 2.14.18 | @react-native-ohos/react-native-gesture-handler | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-gesture-handler) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-gesture-handler/releases) | + ## Installation and Usage -Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-gesture-handler Releases](https://github.com/react-native-oh-library/react-native-harmony-gesture-handler/releases).For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package. +Find the matching version information in the release address of a third-party library: [@react-native-ohos/react-native-gesture-handler Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-gesture-handler/releases).For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package. Go to the project directory and execute the following instruction: @@ -26,13 +33,13 @@ Go to the project directory and execute the following instruction: #### **npm** ```bash -npm install @react-native-oh-tpl/react-native-gesture-handler +npm install @react-native-ohos/react-native-gesture-handler ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/react-native-gesture-handler +yarn add @react-native-ohos/react-native-gesture-handler ``` @@ -103,11 +110,16 @@ export default function App() { ## Use Codegen +Version >= @react-native-ohos/react-native-gesture-handler@2.14.18, compatible with codegen-lib for generating bridge code. + this repository release package that end with rc.x has been adapted to `Codegen` , generate the bridge code of the third-party library by using the `Codegen`. For details, see[ Codegen Usage Guide](/en/codegen.md). ## Link -Currently, HarmonyOS does not support AutoLink. Therefore, you need to manually configure the linking. +Version >= @react-native-ohos/react-native-gesture-handler@2.14.18 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. +Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Currently, Version <= @react-native-oh-tpl/react-native-gesture-handler@2.14.17@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. Open the `harmony` directory of the HarmonyOS project in DevEco Studio. @@ -141,7 +153,7 @@ Open `entry/oh-package.json5` file and add the following dependencies: "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-gesture-handler": "file:../../node_modules/@react-native-oh-tpl/react-native-gesture-handler/harmony/gesture_handler.har" + "@react-native-ohos/react-native-gesture-handler": "file:../../node_modules/@react-native-ohos/react-native-gesture-handler/harmony/gesture_handler.har" } ``` @@ -180,7 +192,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/react-native-gesture-handler/src/main/cpp" ./gesture-handler) ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/react-native-gesture-handler/src/main/cpp" ./gesture-handler) # RNOH_END: manual_package_linking_1 file(GLOB GENERATED_CPP_FILES "./generated/*.cpp") @@ -220,7 +232,7 @@ std::vector> PackageProvider::getPackages(Package::Cont Open the`entry/src/main/ets/RNPackagesFactory.ts ` file and add the following code: ```diff -+ import GestureHandlerPackage from '@react-native-oh-tpl/react-native-gesture-handler'; ++ import GestureHandlerPackage from '@react-native-ohos/react-native-gesture-handler'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -249,7 +261,7 @@ Then build and run the code. To use this repository, you need to use the correct React-Native and RNOH versions. In addition, you need to use DevEco Studio and the ROM on your phone. -Check the release version information in the release address of the third-party library: [@react-native-oh-tpl/react-native-gesture-handler Releases](https://github.com/react-native-oh-library/react-native-harmony-gesture-handler/releases) +Check the release version information in the release address of the third-party library: [@react-native-ohos/react-native-gesture-handler Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-gesture-handler/releases) > [!TIP] [Official Documentation](https://docs.swmansion.com/react-native-gesture-handler/docs/) diff --git a/en/react-native-linear-gradient.md b/en/react-native-linear-gradient.md index 7e66d3a066f910cfbdc64828bdc280fc1963714f..74f1d10684a443d74508c139ae0d7b8d56b26ac2 100644 --- a/en/react-native-linear-gradient.md +++ b/en/react-native-linear-gradient.md @@ -4,14 +4,14 @@

react-native-linear-gradient

-This project is based on [react-native-linear-gradient@3.0.0-alpha.1](https://github.com/react-native-linear-gradient/react-native-linear-gradient)。 +> [!TIP] [GitHub address](https://github.com/react-native-oh-library/react-native-linear-gradient) -This third-party library has been migrated to Gitee and is now available for direct download from npm, the new package name is: `@react-native-ohos/react-native-linear-gradient`, The version correspondence details are as follows: +This third-party library has been migrated to Gitcode and is now available for direct download from npm, the new package name is: `@react-native-ohos/react-native-linear-gradient`, After introducing the new version of the third-party library, The version correspondence details are as follows: | Version | Package Name | Repository | Release | | ------------------------- | ------------------------------------------------- | ------------------ | -------------------------- | | <= 3.0.0-0.5.0@deprecated | @react-native-oh-tpl/react-native-linear-gradient | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient/releases) | -| > 3.0.0 | @react-native-ohos/react-native-linear-gradient | [Gitee](https://gitee.com/openharmony-sig/rntpc_react-native-linear-gradient) | [Gitee Releases](https://gitee.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) | +| > 3.0.0 | @react-native-ohos/react-native-linear-gradient | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) | ## 1. Installation and Usage @@ -90,7 +90,7 @@ var styles = StyleSheet.create({ ## 2. Manual Link -Version >= @react-native-ohos/react-native-linear-gradient@3.0.2 now supports Autolink without requiring manual configuration. +Version >= @react-native-ohos/react-native-linear-gradient@3.0.2 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Currently, Version < @react-native-ohos/react-native-linear-gradient@3.0.2,Version <= @react-native-oh-tpl/react-native-linear-gradient@3.0.0-0.5.0@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. @@ -197,7 +197,7 @@ Then build and run the code. ## 3.1 Compatibility -Check the release version information in the release address of the third-party library: [@react-native-ohos/react-native-linear-gradient Releases](https://gitee.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) +Check the release version information in the release address of the third-party library: [@react-native-ohos/react-native-linear-gradient Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) ## Properties @@ -221,4 +221,4 @@ Check the release version information in the release address of the third-party ## 6. License -This project is licensed under [The MIT License (MIT)](https://gitee.com/openharmony-sig/rntpc_react-native-linear-gradient/blob/master/LICENSE). +This project is licensed under [The MIT License (MIT)](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/blob/master/LICENSE). diff --git a/en/react-native-localize.md b/en/react-native-localize.md index 2c05a692c819d9049cefc917c85e5e45f513cf75..8bf63964ef534de456b41cb2348f8deb3de414d0 100644 --- a/en/react-native-localize.md +++ b/en/react-native-localize.md @@ -127,7 +127,7 @@ this repository has been adapted to `Codegen`, generate the bridge code of the t ## Link -Version > @react-native-ohos/react-native-localize@3.1.0 now supports Autolink without requiring manual configuration. +Version > @react-native-ohos/react-native-localize@3.1.0 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Currently, Version <= @react-native-oh-tpl/react-native-localize@3.1.0-0.0.1@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. diff --git a/en/react-native-orientation-locker.md b/en/react-native-orientation-locker.md index 613581bbb8522ed130fc1abb1758caa46bb3e73a..997cc5adc03e9778f4985b44ecfa516e6e1404a8 100644 --- a/en/react-native-orientation-locker.md +++ b/en/react-native-orientation-locker.md @@ -218,7 +218,7 @@ const styles = StyleSheet.create({ ## Link -Version > @react-native-ohos/react-native-orientation-locker@1.7.0 now supports Autolink without requiring manual configuration. +Version > @react-native-ohos/react-native-orientation-locker@1.7.0 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Currently, Version <= @react-native-oh-tpl/react-native-orientation-locker@1.7.0-0.0.7@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. diff --git a/en/react-native-sound.md b/en/react-native-sound.md index 33caf7e5e0f1ce176d5b287ad2d8f71770fb31d7..2d77987ec553e1e53a982d7708206d87ec13f5b3 100644 --- a/en/react-native-sound.md +++ b/en/react-native-sound.md @@ -164,7 +164,7 @@ export default SoundDemo; ## Link -Version >= @react-native-ohos/react-native-sound@0.11.3 now supports Autolink without requiring manual configuration. +Version >= @react-native-ohos/react-native-sound@0.11.3 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Currently, Version <= @react-native-oh-tpl/react-native-sound@0.11.2-0.0.13@deprecated does not support AutoLink. Therefore, you need to manually configure the linking. diff --git a/en/react-native-webview.md b/en/react-native-webview.md index 7218cc02795eb10219bde7f32c495b4af63bef15..9ac97546f2a59226113a9892c97e9d5f82d0e84d 100644 --- a/en/react-native-webview.md +++ b/en/react-native-webview.md @@ -61,7 +61,7 @@ export default function WebViewDemo() { ## Link -Version > @react-native-ohos/react-native-webview@13.10.4 now supports Autolink without requiring manual configuration. +Version > @react-native-ohos/react-native-webview@13.10.4 now supports Autolink without requiring manual configuration, currently only supports 72 frameworks. Autolink Framework Guide Documentation: https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md The 0.72 branch supports full Autolinking functionality starting from the RNOH 0.72.94 version (corresponding to the @react-native-oh/react-native-harmony-cli version 0.0.40). diff --git a/zh-cn/lottie-react-native.md b/zh-cn/lottie-react-native.md index fb343a01645cc103a3c10a487b367463a9f409b5..273c7fbd3c0957cdea2baf48824eb4542ecd9f44 100644 --- a/zh-cn/lottie-react-native.md +++ b/zh-cn/lottie-react-native.md @@ -71,7 +71,7 @@ export default App; ## Link -Version >= @react-native-ohos/lottie-react-native@6.4.2,已支持 Autolink,无需手动配置。 +Version >= @react-native-ohos/lottie-react-native@6.4.2,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md 0.72分支从RNOH 0.72.94版本(对应 @react-native-oh/react-native-harmony-cli 版本是0.0.40)开始可使用完整的 Autolinking 功能。 diff --git a/zh-cn/react-native-async-storage-async-storage.md b/zh-cn/react-native-async-storage-async-storage.md index 0cd956c518152adbdd75f501a801e16fc82619f5..8e6ad4ce54fadd3fde55d7704c352d9a58eede73 100644 --- a/zh-cn/react-native-async-storage-async-storage.md +++ b/zh-cn/react-native-async-storage-async-storage.md @@ -24,7 +24,7 @@ ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/async-storage Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/release) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/async-storage Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -116,7 +116,7 @@ export default function App() { ## Link -Version >= @react-native-ohos/async-storage@1.21.1,已支持 Autolink,无需手动配置。 +Version >= @react-native-ohos/async-storage@1.21.1,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Version <= @react-native-oh-tpl/async-storage@1.21.0-0.2.2@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 @@ -259,7 +259,7 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/async-storage Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/release) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/async-storage Releases](https://gitcode.com/openharmony-sig/rntpc_async-storage/releases) ## API diff --git a/zh-cn/react-native-blob-util.md b/zh-cn/react-native-blob-util.md index 944b47f6652a8928672bf73e636f127c071b97d0..5e2a83fb57833cdd0dbc7ca2be67e782eeb5d5bf 100644 --- a/zh-cn/react-native-blob-util.md +++ b/zh-cn/react-native-blob-util.md @@ -397,13 +397,14 @@ const styles = StyleSheet.create({ ``` ## 使用 Codegen + Version >= @react-native-ohos/react-native-blob-util@0.19.8,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version >= @react-native-ohos/react-native-blob-util@0.19.8,已支持 Autolink,无需手动配置。 +Version >= @react-native-ohos/react-native-blob-util@0.19.8,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Version <= @react-native-oh-tpl/react-native-blob-util@0.19.7@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 diff --git a/zh-cn/react-native-cameraroll.md b/zh-cn/react-native-cameraroll.md index 19a5525e64e4fcc2a4196ad77801729747665404..06f18ac90c79a25c1ce6eabff32d4e0b935815e8 100644 --- a/zh-cn/react-native-cameraroll.md +++ b/zh-cn/react-native-cameraroll.md @@ -77,7 +77,7 @@ Version >= @react-native-ohos/camera-roll@7.8.4,已适配codegen-lib生成桥 ## Link -Version >= @react-native-ohos/camera-roll@7.8.4,已支持 Autolink,无需手动配置。 +Version >= @react-native-ohos/camera-roll@7.8.4,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Version <= @react-native-oh-tpl/camera-roll@7.8.3-0.1.5@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 diff --git a/zh-cn/react-native-community-netinfo.md b/zh-cn/react-native-community-netinfo.md index a921e2bbd03020f605a933f0d832b2c2ae1fa55b..5e2ed279626ad6c4168d1cd728bb6ca7b7a347ed 100644 --- a/zh-cn/react-native-community-netinfo.md +++ b/zh-cn/react-native-community-netinfo.md @@ -80,7 +80,7 @@ export default App; ## Link -Version >= @react-native-ohos/netinfo@11.1.1,已支持 Autolink,无需手动配置。 +Version >= @react-native-ohos/netinfo@11.1.1,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Version <= @react-native-oh-tpl/netinfo@11.1.0-0.0.8@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 diff --git a/zh-cn/react-native-fs.md b/zh-cn/react-native-fs.md index eaf15c40cd95468a1c4e0587314ac709ca522175..4de588f77526ada36f180b0fe7ff225ebdb8ba54 100644 --- a/zh-cn/react-native-fs.md +++ b/zh-cn/react-native-fs.md @@ -4,12 +4,14 @@

react-native-fs

-本项目基于 [react-native-fs@2.20.0](https://github.com/itinance/react-native-fs/tree/v2.20.0) 开发。 +> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-fs) + +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-fs`,具体版本所属关系如下: | Version | Package Name | Repository | Release | | --------------------------- | ------------------------------------ | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | <= 2.20.0-0.1.14@deprecated | @react-native-oh-tpl/react-native-fs | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-fs) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-fs/releases) | -| >= 2.20.1 | @react-native-ohos/react-native-fs | [Gitee](https://gitcode.com/openharmony-sig/rntpc_react-native-fs) | [Gitee Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-fs/releases) | +| >= 2.20.1 | @react-native-ohos/react-native-fs | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-fs) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-fs/releases) | ## 1. 安装与使用 @@ -117,7 +119,7 @@ export default App; ``` ## 2. Manual Link -Version >= @react-native-ohos/react-native-fs@2.20.2,已支持 Autolink,无需手动配置。 +Version >= @react-native-ohos/react-native-fs@2.20.2,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Version < @react-native-ohos/react-native-fs@2.20.2,Version <= @react-native-oh-tpl/react-native-fs@2.20.0-0.1.14@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 @@ -261,7 +263,7 @@ ohpm install ### 3.1. 兼容性 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/react-native-fs Releases](https://gitee.com/openharmony-sig/rntpc_react-native-fs/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/react-native-fs Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-fs/releases) ## 4. 静态方法 diff --git a/zh-cn/react-native-gesture-handler.md b/zh-cn/react-native-gesture-handler.md index 4f7cc673ce9e9df9024930d72d98f052fab729ce..65cfb7ca056fa41849dcc7fdbd56237d6c113ca1 100644 --- a/zh-cn/react-native-gesture-handler.md +++ b/zh-cn/react-native-gesture-handler.md @@ -14,9 +14,16 @@ > [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-harmony-gesture-handler) +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-gesture-handler`,具体版本所属关系如下: + +| Version | Package Name | Repository | Release | +| ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| <= 2.14.17@deprecated | @react-native-oh-tpl/react-native-gesture-handler | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-gesture-handler) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-gesture-handler/releases) | +| >= 2.14.18 | @react-native-ohos/react-native-gesture-handler | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-gesture-handler) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-gesture-handler/releases) | + ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-gesture-handler Releases](https://github.com/react-native-oh-library/react-native-harmony-gesture-handler/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/react-native-gesture-handler Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-gesture-handler/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -25,13 +32,13 @@ #### **npm** ```bash -npm install @react-native-oh-tpl/react-native-gesture-handler +npm install @react-native-ohos/react-native-gesture-handler ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/react-native-gesture-handler +yarn add @react-native-ohos/react-native-gesture-handler ``` @@ -102,11 +109,16 @@ export default function App() { ## 使用Codegen +Version > @react-native-ohos/react-native-gesture-handler@2.14.18,已适配codegen-lib生成桥接代码。 + 本库未带rc.x的版本号是已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -目前 HarmonyOS 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 +Version >= @react-native-ohos/react-native-gesture-handler@2.14.18,已支持 Autolink,无需手动配置,目前只支持72框架。 +Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md + +Version <= @react-native-oh-tpl/react-native-gesture-handler@2.14.17@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 首先需要使用 DevEco Studio 打开项目里的 HarmonyOS 工程 `harmony` @@ -143,7 +155,7 @@ export default function App() { "dependencies": { "@rnoh/react-native-openharmony": "file:../react_native_openharmony", - "@react-native-oh-tpl/react-native-gesture-handler": "file:../../node_modules/@react-native-oh-tpl/react-native-gesture-handler/harmony/gesture_handler.har" + "@react-native-ohos/react-native-gesture-handler": "file:../../node_modules/@react-native-ohos/react-native-gesture-handler/harmony/gesture_handler.har" } ``` @@ -182,7 +194,7 @@ add_subdirectory("${RNOH_CPP_DIR}" ./rn) # RNOH_BEGIN: manual_package_linking_1 add_subdirectory("../../../../sample_package/src/main/cpp" ./sample-package) -+ add_subdirectory("${OH_MODULES}/@react-native-oh-tpl/react-native-gesture-handler/src/main/cpp" ./gesture-handler) ++ add_subdirectory("${OH_MODULES}/@react-native-ohos/react-native-gesture-handler/src/main/cpp" ./gesture-handler) # RNOH_END: manual_package_linking_1 file(GLOB GENERATED_CPP_FILES "./generated/*.cpp") @@ -222,7 +234,7 @@ std::vector> PackageProvider::getPackages(Package::Cont 打开 `entry/src/main/ets/RNPackagesFactory.ts`,添加: ```diff -+ import GestureHandlerPackage from '@react-native-oh-tpl/react-native-gesture-handler'; ++ import GestureHandlerPackage from '@react-native-ohos/react-native-gesture-handler'; export function createRNPackages(ctx: RNPackageContext): RNPackage[] { return [ @@ -251,7 +263,7 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-oh-tpl/react-native-gesture-handler Releases](https://github.com/react-native-oh-library/react-native-harmony-gesture-handler/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/react-native-gesture-handler Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-gesture-handler/releases) > [!TIP] [官方文档](https://docs.swmansion.com/react-native-gesture-handler/docs/) diff --git a/zh-cn/react-native-linear-gradient.md b/zh-cn/react-native-linear-gradient.md index 487762993b19cde28544dac55e42d4558c7ec019..f3863e8fe2392b0f68cdcaefef93b8697c55b425 100644 --- a/zh-cn/react-native-linear-gradient.md +++ b/zh-cn/react-native-linear-gradient.md @@ -4,14 +4,14 @@

react-native-linear-gradient

-本项目基于 [react-native-linear-gradient@3.0.0-alpha.1](https://github.com/react-native-linear-gradient/react-native-linear-gradient) 开发。 +> [!TIP] [Github 地址](https://github.com/react-native-oh-library/react-native-linear-gradient) -该第三方库的仓库已迁移至 Gitee,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-linear-gradient`,具体版本所属关系如下: +该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:`@react-native-ohos/react-native-linear-gradient`,具体版本所属关系如下: | Version | Package Name | Repository | Release | | ------------------------- | ------------------------------------------------- | ------------------ | -------------------------- | | <= 3.0.0-0.5.0@deprecated | @react-native-oh-tpl/react-native-linear-gradient | [Github(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/react-native-linear-gradient/releases) | -| > 3.0.0 | @react-native-ohos/react-native-linear-gradient | [Gitee](https://gitee.com/openharmony-sig/rntpc_react-native-linear-gradient) | [Gitee Releases](https://gitee.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) | +| > 3.0.0 | @react-native-ohos/react-native-linear-gradient | [GitCode](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) | ## 1. 安装与使用 @@ -90,7 +90,7 @@ var styles = StyleSheet.create({ ## 2. Manual Link -Version >= @react-native-ohos/react-native-linear-gradient@3.0.2,已支持 Autolink,无需手动配置。 +Version >= @react-native-ohos/react-native-linear-gradient@3.0.2,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Version < @react-native-ohos/react-native-linear-gradient@3.0.2,Version <= @react-native-oh-tpl/react-native-linear-gradient@3.0.0-0.5.0@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 @@ -197,7 +197,7 @@ ohpm install ### 3.1 兼容性 -请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/react-native-linear-gradient Releases](https://gitee.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) +请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/react-native-linear-gradient Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/releases) ## 4. 属性 @@ -221,4 +221,4 @@ ohpm install ## 6. 开源协议 -本项目基于 [The MIT License (MIT)](https://gitee.com/openharmony-sig/rntpc_react-native-linear-gradient/blob/master/LICENSE),请自由地享受和参与开源。 +本项目基于 [The MIT License (MIT)](https://gitcode.com/openharmony-sig/rntpc_react-native-linear-gradient/blob/master/LICENSE),请自由地享受和参与开源。 diff --git a/zh-cn/react-native-localize.md b/zh-cn/react-native-localize.md index 135f81bfb1576d329ad80a8548c3299ef2f454e9..476100a01cdfa157e27a65815288dfc26f13d176 100644 --- a/zh-cn/react-native-localize.md +++ b/zh-cn/react-native-localize.md @@ -120,13 +120,14 @@ export default LocalizeDemo; ``` ## 使用 Codegen + Version > @react-native-ohos/react-native-localize@3.1.0,已适配codegen-lib生成桥接代码。 本库已经适配了 `Codegen` ,在使用前需要主动执行生成三方库桥接代码,详细请参考[ Codegen 使用文档](/zh-cn/codegen.md)。 ## Link -Version > @react-native-ohos/react-native-localize@3.1.0,已支持 Autolink,无需手动配置。 +Version > @react-native-ohos/react-native-localize@3.1.0,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Version <= @react-native-oh-tpl/react-native-localize@3.1.0-0.0.1@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 diff --git a/zh-cn/react-native-orientation-locker.md b/zh-cn/react-native-orientation-locker.md index fb9843b9cdbf8d8456bea5a7efac7ac3761e8451..347f1a4a55a8870343bf38893d3acc3a8cbbc823 100644 --- a/zh-cn/react-native-orientation-locker.md +++ b/zh-cn/react-native-orientation-locker.md @@ -220,7 +220,7 @@ const styles = StyleSheet.create({ ## Link -Version > @react-native-ohos/react-native-orientation-locker@1.7.0,已支持 Autolink,无需手动配置。 +Version > @react-native-ohos/react-native-orientation-locker@1.7.0,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Version <= @react-native-oh-tpl/react-native-orientation-locker@1.7.0-0.0.7@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 diff --git a/zh-cn/react-native-sound.md b/zh-cn/react-native-sound.md index 0d587be5c9b683f99d32adb172430e278170a335..f05980f6cb92629150647f43db92b3090c3a7dd6 100644 --- a/zh-cn/react-native-sound.md +++ b/zh-cn/react-native-sound.md @@ -162,7 +162,7 @@ export default SoundDemo; ## Link -Version >= @react-native-ohos/react-native-sound@0.11.3,已支持 Autolink,无需手动配置。 +Version >= @react-native-ohos/react-native-sound@0.11.3,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md Version <= @react-native-oh-tpl/react-native-sound@0.11.2-0.0.13@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 diff --git a/zh-cn/react-native-webview.md b/zh-cn/react-native-webview.md index ecbfcbf235187c152fb730eeec4d1613bb12ec12..cc09ce7364ddf1dbe8f95c016daeb38ab8082c7c 100644 --- a/zh-cn/react-native-webview.md +++ b/zh-cn/react-native-webview.md @@ -60,7 +60,7 @@ export default function WebViewDemo() { ## Link -Version > @react-native-ohos/react-native-webview@13.10.4,已支持 Autolink,无需手动配置。 +Version > @react-native-ohos/react-native-webview@13.10.4,已支持 Autolink,无需手动配置,目前只支持72框架。 Autolink框架指导文档:https://gitcode.com/openharmony-sig/ohos_react_native/blob/master/docs/zh-cn/Autolinking.md 0.72分支从RNOH 0.72.94版本(对应 @react-native-oh/react-native-harmony-cli 版本是0.0.40)开始可使用完整的 Autolinking 功能。