react-native
Installation
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- 用 React Native 开发跨平台移动应用、原生组件与桥接
- 配置 Metro、原生依赖、调试与发布
How to use this skill
- 核心:View、Text、FlatList、StyleSheet;导航(React Navigation);原生模块与链接。
- 运行:npx react-native run-ios/run-android;Metro、模拟器与真机。
- 参考:https://reactnative.dev/docs/getting-started
Best Practices
- 列表用 FlatList 与优化;避免在主线程重计算。
- 原生依赖与版本匹配;测试双端与发布流程。