Cross-Platform Styling Made Simple
NativeWind brings the power of Tailwind CSS to React Native, delivering a consistent styling experience across iOS, Android, and Web. The library automatically uses the best style engine for each platform, ensuring optimal performance and native feel.Supported Platforms
NativeWind v5 supports all major React Native platforms with platform-specific optimizations:iOS
Native iOS styling with full support for platform-specific features
Android
Optimized Android rendering with native performance
Web
CSS-based styling for React Native Web applications
How It Works
NativeWind processes styles during your application’s build step and uses a minimal runtime to apply reactive styles:Build-time Processing
Styles are compiled during the build step using the Tailwind CSS compiler, ensuring zero runtime overhead for static styles.
Platform Detection
NativeWind automatically detects your target platform and uses the appropriate style engine:
- Native platforms (iOS/Android):
StyleSheet.createfrom React Native - Web platform: CSS StyleSheets for optimal browser performance
Key Features Across All Platforms
NativeWind provides consistent feature support across platforms:Styling Features
- Tailwind CSS Utilities: Full access to Tailwind’s utility classes
- Dark Mode: Automatic dark mode support with
dark:modifier - Responsive Design: Media queries and breakpoints
- Arbitrary Classes: Use custom values with
[value]syntax - CSS Variables: Custom properties for dynamic theming
Advanced Features
Animations & Transitions
Animations & Transitions
NativeWind supports animations and transitions across all platforms. On native platforms, animations are powered by React Native’s Animated API, while web uses CSS animations.
Pseudo Classes
Pseudo Classes
Interactive pseudo classes work on compatible components:
hover:- Hover states (Web and some native components)focus:- Focus statesactive:- Active/pressed states
Container Queries
Container Queries
Container queries allow you to style components based on their parent’s size:
Style-based container queries are not currently supported.
Parent State Modifiers
Parent State Modifiers
Use
group and group/<name> syntax to style children based on parent state:Setup by Platform
Choose your development environment to get started:Expo
Recommended for most projects. Quick setup with Expo SDK 54+
React Native CLI
For projects using React Native CLI or brownfield apps
React Native Web
Add web support to your React Native application
Platform-Specific Considerations
Requirements
All platforms require:- Node.js: Version 20 or higher
- Tailwind CSS: Version 4.1.11 or higher
- react-native-css: Version 3.0.1 or higher
- React: Version 19.1.0 or higher
- React Native: Version 0.81.4 or higher
NativeWind v5 is currently in preview. For production apps, you may want to use NativeWind v4.1.