1234567891011 |
- import {Dimensions} from 'react-native'
- const {width, height} = Dimensions.get('window');
- // Since the app will only potrayed in potrait mode
- const metrics = {
- screenWidth: width < height ? width : height,
- screenHeight: width < height ? height: width
- }
- export default metrics;
|