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
一个提供 API 的库,可以极大地简化创建流畅、强大且可维护的动画的过程。
react-native-reanimated 提供了一个 API,大大简化了创建流畅、强大且易于维护的动画的过程。
Reanimated 使用的 React Native API 与 JavaScriptCore 的“远程 JS 调试”不兼容。如果你想在使用
react-native-reanimated的情况下调试应用,需要使用 Hermes JavaScript 引擎 和 Hermes 的 JavaScript 检查器。
安装
🌐 Installation
无需额外配置。安装该库时,Reanimated Babel 插件 会自动在 babel-preset-expo 中配置。
🌐 No additional configuration is required. Reanimated Babel plugin is automatically configured in babel-preset-expo when you install the library.
用法
🌐 Usage
下面的示例展示了如何使用 react-native-reanimated 库来创建一个简单的动画。
🌐 The following example shows how to use the react-native-reanimated library to create a simple animation.
了解更多
🌐 Learn more
获取有关 API 及其使用的完整信息。