Nativewind
nativewind
Use Tailwindcss in your cross-platform React Native applications
React Native Libraries
react-native
react
native
tailwind
tailwindcss
theme
style
nativewind
React Native Libraries
javascript
Stars
8.1k
Weekly
1.3M
Open issues
69
Bundle
~25 kB
Installation
npm install nativewindCode example
import { View, Text, StyleSheet } from "react-native";
import { Nativewind } from "nativewind";
export function Example() {
return (
<View style={styles.box}>
<Text style={styles.title}>Nativewind</Text>
<Nativewind />
</View>
);
}
const styles = StyleSheet.create({
box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8 },
title: { fontSize: 18, fontWeight: "600" },
});Pros & cons
Pros
- Actively maintained by Mark Lawlor
- 1.3M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- 69 open issues on GitHub