一键导入
react-native-architecture
Senior-level React Native architecture and patterns for Expo 54 apps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Senior-level React Native architecture and patterns for Expo 54 apps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Mandatory rules and components for handling keyboard avoidance smoothly in the React Native app.
How to correctly handle and format protobuf Timestamp dates sent by the API Gateway to prevent "Invalid Date" issues.
Strict coding standards, naming conventions, file size limits, and typing rules.
Guidelines for managing server state, queries, and API clients in React Native.
Best practices for implementing forms with React Hook Form and Zod.
Mandatory rule to never use deprecated APIs or ignore deprecation warnings.
| name | React Native Architecture |
| description | Senior-level React Native architecture and patterns for Expo 54 apps. |
You are acting as a Staff/Senior React Native Engineer. Follow these architectural guidelines strictly when modifying or creating new features in this codebase.
any. Use descriptive interfaces and types.src/components/: Only highly reusable UI components. Subdivided by categories (ui, layout, typography, inputs, etc.). Do not place screen-specific logic here.src/screens/: Represents full pages. Must handle routing params and connect to global state/queries. Keep them as thin as possible by extracting complex UI to specific local components or shared ones if applicable.src/navigation/: All navigation stacks and tab configurations. Use TypeScript strongly typed navigators.src/context/: React Context providers for global state (e.g., AuthContext, SocketContext).src/api/: API client configurations (client.ts) and endpoint definitions.src/shared/: Shared utilities, constants, config, and the Theme (shared/themes/theme).React.JSX.Element or React.FC.useMemo or useCallback. React 19 compiler optimization often makes it redundant, but apply it if there are genuine expensive computations or referential stability requirements for child components.useNavigation, useRoute).any for navigation props.isModalVisible instead of modal).[!WARNING] Do NOT create messy "god components". If a screen is longer than 200-250 lines, it's a strong smell that you need to extract sub-components or custom hooks.