https://github.com/robinpowered/glamorous-native-orientation
Declarative orientation style addons for glamorous-native
https://github.com/robinpowered/glamorous-native-orientation
Last synced: 4 months ago
JSON representation
Declarative orientation style addons for glamorous-native
- Host: GitHub
- URL: https://github.com/robinpowered/glamorous-native-orientation
- Owner: robinpowered
- Created: 2017-08-05T19:42:24.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-05T19:53:25.000Z (almost 9 years ago)
- Last Synced: 2025-09-23T00:00:21.105Z (8 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# glamorous-native-orientation
A declarative orientation style addon for `glamorous-native`
## Example
```js
const OrientationThemeProvider = withOrientation(ThemeProvider)
const OrientationStyledComponent = glamorous.view(
portraitStyle({fontSize: 24}),
landscapeStyle({fontSize: 36})
)
...
{`I'm large on landscape, and small on portrait`}
```