导入依赖import Dimensions from 'Dimensions';获取屏幕宽度Dimensions.get('window').width;获取屏幕高度Dimensions.get('window').height;