glamorous-native-orientation
v0.0.1
Published
Declarative orientation style addons for glamorous-native
Downloads
1
Maintainers
Readme
glamorous-native-orientation
A declarative orientation style addon for glamorous-native
Example
const OrientationThemeProvider = withOrientation(ThemeProvider)
const OrientationStyledComponent = glamorous.view(
portraitStyle({fontSize: 24}),
landscapeStyle({fontSize: 36})
)
...
<OrientationThemeProvider>
<OrientationStyledComponent>
{`I'm large on landscape, and small on portrait`}
</OrientationStyledComponent>
</OrientationThemeProvider>