- Notifications
You must be signed in to change notification settings - Fork25
Incredibly simple utility for (sort of) using viewport units with React Native.
License
NotificationsYou must be signed in to change notification settings
jmstout/react-native-viewport-units
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Incredibly simple utility for (sort of) using viewport units withReact Native.
$ npm install react-native-viewport-units --save
var{vw, vh, vmin, vmax}=require('react-native-viewport-units');
Notice the required operator/syntax:x * vw
<Viewstyle={{height:50*vh,width:50*vw}}/>
varstyles=StyleSheet.create({lookingGood:{width:15*vmin,height:10*vmax,padding:2*vw,margin:4*vh,}});
I would like to add support for orientation changes and reflowing components that use viewport units. I am, however, waiting until something official lands. Keeping a close eye on418.
MIT ©Jeff Stout
About
Incredibly simple utility for (sort of) using viewport units with React Native.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.