mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-12 17:08:19 +08:00
835 B
835 B
import StartCoding from "../_start-coding-components.md" import ReactNativeWebPreview from "./_react-native-web-0-18-preview.md"
PostCSS (CSS) 🔬
This preview feature allows you to use the PostCSS to generate CSS stylesheets. You can then use className to style your React Native Web components using CSS.
Setup
1. Setup Tailwind CSS
Follow the setup guide for Tailwind CLI.
2. Enable preview features
You will need to enable preview features on your TailwindProvider
import { TailwindProvider } from 'tailwindcss-react-native'
function MyAppsProviders ({ children }) {
return (
- <TailwindProvider>{children}</TailwindProvider>
+ <TailwindProvider preview={true}>{children}</TailwindProvider>
)
}