Installation
Magic Native UI requires Expo SDK 57 or newer, React 19 and Tailwind CSS v4.
expo@>=57react-native@>=0.86react@19tailwindcss@4
1
Run init
This writes components.json, creates your Tailwind entry stylesheet with the theme tokens, configures Metro for Uniwind and installs the base dependencies.
Terminal
2
Import the stylesheet and add a portal host
Import the stylesheet in your root layout — not in index.js, which breaks fast refresh. PortalHost must be the last child so overlays render above everything.
app/_layout.tsx
3
Add components
Each component is copied into your project along with anything it depends on.
Terminal
4
Switch themes
Themes are Uniwind variants rather than a class on the root element, so there is no provider to add. Dark mode follows the device by default.
theme.ts