react-native-reanimated README

The project's README from github.com/software-mansion/react-native-reanimated. As one markdown file: README.md.

React Native Reanimated and React Native Worklets by Software Mansion

Ad Ad Ad

Reanimated & Worklets

This repository contains two main packages:

Create smooth animations with an excellent developer experience.

Reanimated 4 is here! Check out our documentation page for more information

Nightly CI state

Main branch build NPM Reanimated publish [Nightly] NPM Worklets publish [Nightly] Reanimated + Worklets compatibility check Reanimated compatibility check Use frameworks Reanimated build check [Nightly] React Native nightly Reanimated build check Expo DevClient build check Reanimated TypeScript compatibility test Windows hosted app Reanimated build check URL validation Runtime tests nightly Runtime tests sanitizers nightly

Installation

Check out the detailed installation instructions for Reanimated and instructions for Worklets on their dedicated documentation pages.

Compatibility

Reanimated 4.x and Worklets support only the New React Native architecture and three latest React Native versions.

If your app still runs on the old architecture, please consider adopting the New Architecture or stay with latest 3.x release.

Documentation

You can find more information about Reanimated and Worklets, their API references and more in their dedicated documentation pages:

Examples

The source code for the example (showcase) app is under the apps/common-app directory. If you want to play with the API but don't feel like trying it on a real app, you can run the example project. Check Example README for installation instructions.

License

Reanimated and Worklets libraries are licensed under The MIT License.

Community Discord

Join the Software Mansion Community Discord to chat about Reanimated, Worklets or other Software Mansion libraries.

Reanimated and Worklets are created by Software Mansion

Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – Hire us.

react-native-reanimated (software-mansion/react-native-reanimated)

Searching Database…

这是什么?React Native Reanimated 是一个用于在 React Native 中构建流畅、高性能动画和手势驱动交互的库,并以更现代的方式重新实现了 Animated API。该仓库还包含 React Native Worklets,它是配套库,用于支持多线程 JavaScript 执行。
这是独立应用,还是我要添加到 React Native 项目中的库?这是一个库(实际上包含两个包,Reanimated 和 Worklets),需要安装到现有的 React Native 项目中,而不是独立应用。
我该如何把它添加到 React Native 项目中?请按照 Reanimated 和 Worklets 文档页面上的专门安装说明操作;README 本身没有单独的内联命令。
它是否需要新架构?我能使用旧架构吗?Reanimated 4.x 和 Worklets 只支持 React Native 的新架构以及最新的三个 RN 版本;仍在使用旧架构的应用需要停留在 3.x 版本。
如果我的应用还没有迁移到新架构怎么办?你只能使用较旧的 Reanimated 3.x 系列,因为 4.x 和 Worklets 已完全放弃对旧架构的支持。
它在 iOS 和 Android 上都能用吗?可以,它是一个跨平台的 React Native 库,并且为 Android 和 Apple(iOS)构建都提供了 CI 验证任务。
不把它加入真实应用,我怎么试用?仓库中 apps/common-app 目录下有一个展示用的示例应用,你可以运行它来探索 API,无需将其集成到生产项目中。
React Native Worklets 到底是什么?Worklets 是配套的包,它允许你在 React Native 应用中的独立线程上运行 JavaScript 函数,Reanimated 的多线程动画正是依赖它实现的。
Size
835.3 MB
Stars
11K
Age
8y
Commits · 90 Days