Skip to content

robinpowered/glamorous-native-orientation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 

Repository files navigation

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>

About

Declarative orientation style addons for glamorous-native

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published