glamorous-native-orientation

0.0.1 • Public • Published

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>

Package Sidebar

Install

npm i glamorous-native-orientation

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • atticoos