0.0.1 • Published 7 years ago
glamorous-native-orientation v0.0.1
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>
0.0.1
7 years ago