react-native-responsive-ui-views
react-native-responsive-ui-views is an smart module that provides 2 simple methods for React Native developers to improve yours UI elements fully responsive without media queries.
It also provides an optional method for screen orientation detection and automagic rerendering the new window dimensions.
Try it and make easy to code!
Install
npm install react-native-responsive-ui-views --save
Usage
-
This package provides two basic methods:
-
responsiveWidth - receives a number (float or integer) as the parameter representing the desired width percentage.
-
responsiveHeight - receives a number (float or integer) as the parameter representing the desired height percentage.
-
-
Methods resonsiveWidth and responsiveHeight can be used with any width or heigth css styles.
-
Both methods return an number.
Example
import React,
License
MIT
Pull
Pull request are welcome! Please make PR to development branch though and not to master. Thanks