What problem does it solve?
Creating consistent core UI components for React Native projects is often tedious and error-prone without a standardized pattern. This skill provides a blueprint to implement core components using a namespace-based TypeScript API, a Context API for state sharing, a variants system for theming, and a cohesive design-system integration.
Core Features & Use Cases
- Compound components pattern to compose complex UI and enable flexible composition.
- TypeScript namespaces to organize types and expose a clean public API.
- Context API to share state across root and content components.
- Variants system to support multiple visual styles driven by design tokens and themes.
- Theme integration with useAppTheme and tokens to ensure consistent styling across components.
- Guidance for creating new components or refactoring existing ones with project patterns.
Quick Start
Create a new core component following the namespace pattern, generate Root, Content (if needed), Context, Types, and an index export, and wire it with the project's theme and token system.