Document Template: v0.4.2

react-native-reanimated

This project is based on react-native-reanimated.

This third-party library has been migrated to AtomGit and is now available for direct download from npm, the new package name is: @react-native-ohos/react-native-reanimated, the version correspondence details are as follows:

Name Version(Npm Address) Release Information Supported RN Version Supported Autolink Compile API Version Community Baseline Version Source code address
@react-native-ohos/react-native-reanimated ~ 4.2.0 (In development) AtomGit Releases 0.86.* Yes API12+ 4.6.0 master
@react-native-ohos/react-native-reanimated ~ 4.1.0 (In development) AtomGit Releases 0.84.* Yes API12+ 4.5.3 br_rnoh0.84
@react-native-ohos/react-native-reanimated ~ 4.0.0 AtomGit Releases 0.82.* No API12+ 4.2.1 br_rnoh0.82
@react-native-ohos/react-native-reanimated ~ 3.18.1 AtomGit Releases 0.77.* No API12+ 3.18.0 br_rnoh0.77
@react-native-ohos/react-native-reanimated ~ 3.6.5 AtomGit Releases 0.72.* Yes API12+ 3.6.0 br_rnoh0.72
@react-native-oh-tpl/react-native-reanimated <= 3.6.4@deprecated Github Releases(deprecated) 0.72.* No API12+ 3.6.0 sig

Introduction

react-native-reanimated is a third-party native library for the React Native ecosystem. It rebuilds the underlying cross-platform animation capabilities and provides a declarative JS animation API, enabling high-performance, smooth animation interactions that run on the UI thread.

Installation

Note:

react-native-worklets has been separated into a standalone library and needs to be imported separately. Refer to the @react-native-ohos/react-native-worklets documentation. Currently, only Hermes is supported; switching to other JS engines is not supported.

Go to the project directory and execute the following command:

npm

# RN 0.72
npm install react-native-reanimated@3.6.0
npm install @react-native-ohos/react-native-reanimated

# RN 0.77
npm install react-native-reanimated@3.18.0
npm install @react-native-ohos/react-native-reanimated

# RN 0.82
npm install react-native-reanimated@4.2.1
npm install @react-native-ohos/react-native-reanimated

# RN 0.84
npm install react-native-reanimated@4.5.3
npm install @react-native-ohos/react-native-reanimated

# RN 0.86
npm install react-native-reanimated@4.6.0
npm install @react-native-ohos/react-native-reanimated

yarn

# RN 0.72
yarn add react-native-reanimated@3.6.0
yarn add @react-native-ohos/react-native-reanimated

# RN 0.77
yarn add react-native-reanimated@3.18.0
yarn add @react-native-ohos/react-native-reanimated

# RN 0.82
yarn add react-native-reanimated@4.2.1
yarn add @react-native-ohos/react-native-reanimated

# RN 0.84
yarn add react-native-reanimated@4.5.3
yarn add @react-native-ohos/react-native-reanimated

# RN 0.86
yarn add react-native-reanimated@4.6.0
yarn add @react-native-ohos/react-native-reanimated