This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
react-native-reanimated
一个极大简化创建流畅、强大且易于维护的动画过程的库
Android
iOS
tvOS
Web
Included in Expo Go
react-native-reanimated 提供了一套 API,大幅简化创建流畅、强大且易于维护的动画的过程。
Reanimated 使用的 React Native API 与 JavaScriptCore 的“远程 JS 调试”不兼容。要在使用
react-native-reanimated的应用中使用调试器,你需要使用 Hermes JavaScript 引擎和 Hermes 的 JavaScript 检查器。
安装
Terminal
无需进行其他配置。安装此库时,Reanimated Babel 插件会在 babel-preset-expo 中自动配置。
用法
以下示例展示了如何使用 react-native-reanimated 库创建一个简单的动画。
使用 react-native-reanimated
了解更多
访问官方文档
获取有关 API 及其用法的完整信息。