animation-with-worklets
✓提供用于在 JS 和 UI 线程之间调度函数的 React Native Worklets 指南。适用于涉及scheduleOnRN、scheduleOnUI、worklet、线程调度、useAnimatedReaction、手势处理程序或跨线程函数调用的任务。
SKILL.md
Guidelines for scheduling functions between JavaScript and UI threads using React Native Worklets. This skill covers when and how to use scheduleOnRN and scheduleOnUI, proper function definition patterns, and avoiding unnecessary worklet directives.
Never use the "worklet" directive unless explicitly requested. In 99.9% of cases, there is no need to use it. scheduleOnUI handles worklet conversion automatically, so the directive is unnecessary. This also applies to gesture detector callbacks - you don't need to add the "worklet" directive in gesture handler callbacks.
Use scheduleOnRN and scheduleOnUI from react-native-worklets instead of runOnJS and runOnUI from react-native-reanimated.
提供用于在 JS 和 UI 线程之间调度函数的 React Native Worklets 指南。适用于涉及scheduleOnRN、scheduleOnUI、worklet、线程调度、useAnimatedReaction、手势处理程序或跨线程函数调用的任务。 来源:sovranbitcoin/sovran。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/sovranbitcoin/sovran --skill animation-with-worklets- 分类
- *创意媒体
- 认证
- ✓
- 收录时间
- 2026-02-05
- 更新时间
- 2026-02-18
快速解答
什么是 animation-with-worklets?
提供用于在 JS 和 UI 线程之间调度函数的 React Native Worklets 指南。适用于涉及scheduleOnRN、scheduleOnUI、worklet、线程调度、useAnimatedReaction、手势处理程序或跨线程函数调用的任务。 来源:sovranbitcoin/sovran。
如何安装 animation-with-worklets?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/sovranbitcoin/sovran --skill animation-with-worklets 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/sovranbitcoin/sovran
详情
- 分类
- *创意媒体
- 来源
- skills.sh
- 收录时间
- 2026-02-05