Skip to content

feat: Hooks, providers and theme for React and React Native, and React Native split by purpose - #14

Merged
kasimkazmi merged 2 commits into
mainfrom
feat/native-hooks-providers-theme
Nov 6, 2026
Merged

kasimkazmi merged 2 commits into
mainfrom
feat/native-hooks-providers-theme

Conversation

@kasimkazmi

Copy link
Copy Markdown
Owner

Summary

  • Adds Hooks (useColorScheme, useKeyboardHeight, useHaptics, useReduceMotion, useDebouncedValue), Providers (ModeProvider, ThemeProvider) and Theme (Colors, Globals).
  • These work in React and React Native: items with different code per platform ship name.ts and name.native.ts (Metro resolves the latter), and a docs switch shows the preview and code for each. Single-file items work unchanged on both.
  • The CLI installs the .native file in Expo and React Native apps and skips the cn() helper and class packages for items that don't use them.
  • Splits the React Native section into Inputs, Buttons, Navigation, Overlays, Feedback, Progress and Data.

Verification

  • tsc, eslint, vitest (6114), CLI (17) and MCP (14) tests pass locally; each new page was opened in a browser in both modes.
  • CI runs the production e2e.

🤖 Generated with Claude Code

kasimkazmi and others added 2 commits November 5, 2026 10:53
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… and split React Native by purpose

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modus-ui Ready Ready Preview Nov 6, 2026 8:11pm UTC

@kasimkazmi
kasimkazmi merged commit f47f386 into main Nov 6, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 4a13e8fd Deployed Nov 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant