react-native 获取手机宽度高度
首先引入组件
import {Dimensions} from 'react-native';
{Dimensions.get('window').width+'\n'}
{Dimensions.get('window').height+'\n'}
{Dimensions.get('window').scale+'\n'}
{Dimensions.get('window').width+'\n'}
{Dimensions.get('window').height+'\n'}
{Dimensions.get('window').scale+'\n'}