crs-responsive-size
v1.0.2
Published
This is responsive size for React Native. It's very simple to use for responsive size width and height.
Downloads
5
Maintainers
Readme
This is responsive width and height for react native
It's easy to use for create responsive size for react native. This is step by step for using this package
npm install crs-responsive-size
and for using this, you just need to type like this
import {responsiveWidth, responsiveHeight} from 'crs-responsive-size'
(example)
<View style={{width:responsiveWidth(200), height:responsiveHeight(200)}}>
</View>
But if you want to create square, you need use same width or height. Because it based on your width or height device. Here's for example
<View style={{width:responsiveWidth(200), height:responsiveWidth(200)}}>
</View>
If you have trouble, feel free to text me in Instagram @charismaaji or email me to [email protected]