react-native-responsive-ui-views0.1.2 • Public • Published
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!
npm install react-native-responsive-ui-views --save
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.
Pull request are welcome! Please make PR to development branch though and not to master. Thanks