Vortex for React Native
The first Vortex Native release brings shared design tokens, themed components, and layout primitives to React Native apps.
New features
- Added VortexProvider, ThemeScope, and useTheme for applying a theme, styling a subtree, and reading the active theme and color mode.
- Added
Button, Text, Stack, Columns, and Divider for building screens, plusPlaceholderfor prototyping layouts. - Added useBreakpoints for responsive layouts, useRTL for layout direction, useSwitch for boolean state, and useLatestRef for reading the latest value from a stable ref. Layout direction changes from useRTL take effect after the app reloads.
Install @vortexlabs/vortex-native with React ^19.3.0, React Native >=0.88.0, and @vortexlabs/vortex-themes >=0.8.0 <1.0.0. Import a bundled theme from @vortexlabs/vortex-themes/themes/vortex/native and pass it to VortexProvider. See the Vortex Themes 0.8.0 release notes for custom theme generation.
