mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-18 07:09:32 +08:00
1.2 KiB
1.2 KiB
sidebar_position, title, sidebar_label
| sidebar_position | title | sidebar_label |
|---|---|---|
| 999 | TailwindProvider | <TailwindProvider /> |
All components need to be within the context of the TailwindProvider.
import { TailwindProvider } from "tailwindcss-react-native";
function MyAppsProviders({ children }) {
return <TailwindProvider>{children}</TailwindProvider>;
}
| Prop | Values | Default | Description |
|---|---|---|---|
| platform | web, native, ios, android, windows, macos |
Platform.OS | Used to match platform media queries |
| preview | boolean |
false |
Enable preview features |
| style | Compiled style object | undefined |
For manual injection via the CLI |
| media | Compiled media object | undefined |
For manual injection via the CLI |