- npm i react-native-responsive-screen
- import {widthPercentageToDP as wp, heightPercentageToDP as hp} from 'react-native-responsive-screen';
- hp and wp takes the the actual width/height of the current device specify the sutable precentage width based on the actual height/width
- You can use flex and gap instead of react-native-responsive-screen package
hussaintaher / responsivelayout Goto Github PK
View Code? Open in Web Editor NEWReact Native - Responsive Layouts