mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-16 02:34:28 +08:00
29 lines
614 B
Markdown
29 lines
614 B
Markdown
# NativeWindStyleSheet
|
|
|
|
A StyleSheet is an abstraction similar to CSS StyleSheets and React Native's StyleSheet.
|
|
|
|
## Methods
|
|
|
|
### setOutput(specifics)
|
|
|
|
Set the style output per Platform
|
|
|
|
```js
|
|
NativeWindStyleSheet.setOutput({
|
|
web: 'css',
|
|
default: 'native'
|
|
})
|
|
```
|
|
|
|
### setDimensions(dimensions: Dimensions)
|
|
|
|
Override how window dimensions are calculated. Defaults to Dimensions from React Native.
|
|
|
|
### setAppearance(appearance: Appearance)
|
|
|
|
Override the app's appearance. Defaults to Appearance from React Native.
|
|
|
|
### setColorScheme(colorScheme: 'light' | 'dark' | 'system')
|
|
|
|
Set the applications color scheme
|