diff --git a/en/lottie-react-native.md b/en/lottie-react-native.md index 8d839ed2bda9d43d240404ff40144f24416d9ab8..32ae079b4c94d9f9d3362c96cf7a1340ad096495 100644 --- a/en/lottie-react-native.md +++ b/en/lottie-react-native.md @@ -20,11 +20,18 @@ This third-party library has been migrated to Gitcode and is now available for d | ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | | <= 6.4.1-0.1.17@deprecated | @react-native-oh-tpl/lottie-react-native | [Github(deprecated)](https://github.com/react-native-oh-library/lottie-react-native) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/lottie-react-native/releases) | | >= 6.4.2 | @react-native-ohos/lottie-react-native | [GitCode](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) | +| 7.2.3 | @react-native-ohos/lottie-react-native | [GitCode](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) | ## Installation and Usage Find the matching version information in the release address of a third-party library: [@react-native-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/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. +| Version | Release | Support RN version| +|-------| ------------------------------------------------------------ | ---------- | +| <= 6.4.1-0.1.17@deprecated | [@react-native-oh-tpl/lottie-react-native Releases(deprecated)](https://github.com/react-native-oh-library/lottie-react-native/releases) | 0.72 | +| >= 6.4.2 | [@react-native-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) | 0.72 | +| 7.2.3 | [@react-native-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) | 0.77/0.82 | + Go to the project directory and execute the following instruction: @@ -73,6 +80,12 @@ export default App; ## Link +| | Is supported autolink | Supported RN Version | +|--------------------------------------|-----------------|------------| +| >= 6.4.2 | No | 0.77/0.82 | +| >= 6.4.2 | Yes | 0.72 | +| <= 6.4.1-0.1.17@deprecated | No | 0.72 | + 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). @@ -248,6 +261,10 @@ 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/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) +1.RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +2.RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; +3.RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +4.RNOH: 0.82.1; SDK: HarmonyOS 6.0.1 Release SDK; IDE: DevEco Studio 6.0.1 Release; ROM:6.0.0.120 SP7 ### Permission Requirements diff --git a/zh-cn/lottie-react-native.md b/zh-cn/lottie-react-native.md index 273c7fbd3c0957cdea2baf48824eb4542ecd9f44..56e71848f2c0b7aead7d1e506bf88810aeed9259 100644 --- a/zh-cn/lottie-react-native.md +++ b/zh-cn/lottie-react-native.md @@ -20,10 +20,22 @@ | ------------------------------ | --------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | | <= 6.4.1-0.1.17@deprecated | @react-native-oh-tpl/lottie-react-native | [Github(deprecated)](https://github.com/react-native-oh-library/lottie-react-native) | [Github Releases(deprecated)](https://github.com/react-native-oh-library/lottie-react-native/releases) | | >= 6.4.2 | @react-native-ohos/lottie-react-native | [GitCode](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) | +| 7.2.3 | @react-native-ohos/lottie-react-native | [GitCode](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native) | [GitCode Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) | + ## 安装与使用 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) 。 +请到三方库的 Releases 发布地址查看配套的版本信息: + +| 三方库版本 | 发布信息 | 支持RN版本 | +|-------| ------------------------------------------------------------ | ---------- | +| <= 6.4.1-0.1.17@deprecated | [@react-native-oh-tpl/lottie-react-native Releases(deprecated)](https://github.com/react-native-oh-library/lottie-react-native/releases) | 0.72 | +| >= 6.4.2 | [@react-native-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) | 0.72 | +| 7.2.3 | [@react-native-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) | 0.77/0.82 | + + +对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: @@ -70,9 +82,14 @@ export default App; ``` ## Link +| | 是否支持autolink | RN框架版本 | +|--------------------------------------|-----------------|------------| +| >= 6.4.2 | No | 0.77/0.82 | +| >= 6.4.2 | Yes | 0.72 | +| <= 6.4.1-0.1.17@deprecated | No | 0.72 | 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 +使用AutoLink的工程需要根据该文档配置,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 功能。 Version <= @react-native-oh-tpl/lottie-react-native@6.4.1-0.1.17@deprecated 暂不支持 AutoLink,所以 Link 步骤需要手动配置。 @@ -249,6 +266,10 @@ ohpm install 要使用此库,需要使用正确的 React-Native 和 RNOH 版本。另外,还需要使用配套的 DevEco Studio 和 手机 ROM。 请到三方库相应的 Releases 发布地址查看 Release 配套的版本信息:[@react-native-ohos/lottie-react-native Releases](https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/releases) +1.RNOH: 0.72.96; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +2.RNOH: 0.72.33; SDK: HarmonyOS NEXT B1; IDE: DevEco Studio: 5.0.3.900; ROM: Next.0.0.71; +3.RNOH: 0.77.18; SDK: HarmonyOS 6.0.0 Release SDK; IDE: DevEco Studio 6.0.0.858; ROM: 6.0.0.112; +4.RNOH: 0.82.1; SDK: HarmonyOS 6.0.1 Release SDK; IDE: DevEco Studio 6.0.1 Release; ROM:6.0.0.120 SP7 ### 权限要求