使用配方可能执行第三方依赖安装并修改项目依赖状态
原文依据:2 处该 Skill 不只生成源代码,还明确指示运行 `npx expo install` 安装多个包。安装会获取并执行包管理流程,并通常修改依赖清单、锁文件和 node_modules。
如果解析到的包或版本不符合预期,安装脚本可在开发环境中执行代码,项目构建和依赖树也会发生持久变化。所给材料不能证明这些包或解析版本是否安全。
Skill 明确指示通过 `npx expo install` 安装依赖,配方还给出了具体包列表。这是与 Expo 动画目的相符的正常设置操作,但若代理实际执行,会下载第三方包并改变项目依赖状态;源码没有要求先展示解析版本。用户可授权仅生成代码,或要求安装前列出将解析的版本和文件变更。
**Dependencies.** Install with `npx expo install <package>` — it resolves the version that matches the project's SDK, which plain `npm install` won't:| Need | Package || --- | --- || Animation | `react-native-reanimated` + `react-native-worklets` || Gestures | `react-native-gesture-handler` || Navigation, sheets, native tabs, menus | `expo-router` || Haptics | `expo-haptics` || Keyboard-following UI | `react-native-keyboard-controller` (needs `KeyboardProvider` at the root — see the keyboard recipe) || Illustration, celebration | `lottie-react-native` || Very large animated scenes, custom drawing | `@shopify/react-native-skia` |查看另外 1 个位置
```bashnpx expo install react-native-reanimated react-native-worklets react-native-gesture-handler expo-haptics```(`react-native-keyboard-controller` only for the keyboard recipe.) `expo install`, not `npm install` — it resolves the versions that match the SDK. The worklets Babel plugin is configured by `babel-preset-expo` automatically.