← ClaudeAtlas

react-native-like-mimilisted

Enforce functional-first, type-safe React Native and Expo development using TypeScript, Zod, hooks, composition, platform-aware components, and modular architecture. Use when writing, editing, or refactoring React Native TSX.
whoamimi/plugin-mimi · ★ 3 · Web & Frontend · score 66
Install: claude install-skill whoamimi/plugin-mimi
# React Native Modular Coding Style ## Core Principles - Prefer functional components, hooks, and composition. - Write small, pure, single-responsibility functions. - Require strict TypeScript and typed component interfaces. - Separate domain logic, presentation, and native side effects. - Prefer immutable state and declarative rendering. - Minimize dependencies, abstractions, and boilerplate. ## Type Safety & Schemas - Enable TypeScript `strict: true`. - Prefer `type` and `interface` for internal contracts. - Use discriminated unions for categorical states. - Use `as const` objects for reusable constants. - Prefer `unknown` over `any`. - Use generics and utility types where appropriate. ### Schema Selection - **Zod:** API responses, forms, storage inputs, and runtime validation. - **type / interface:** Component props and internal models. - **Discriminated unions:** Navigation, loading, and feature states. - **enum:** Only when interoperability requires it. - Infer types from Zod rather than duplicating schemas. ## Functional Components - Prefer named function components with explicit props. - Use React Native primitives: View, Text, Pressable, etc. - Prefer composition over class inheritance. - Keep rendering pure and deterministic. - Avoid unnecessary wrappers and deeply nested views. - Extract shared UI components only when beneficial. ## Hooks & State - Use typed custom `use*` hooks for reusable logic. - Follow React's Rules of Hooks. - Prefer local state befor