方法相当简单
import {Dimensions} from 'react-native'
const {height,width} = Dimensions.get('window');
方法相当简单
import {Dimensions} from 'react-native'
const {height,width} = Dimensions.get('window');
本文标题:获取屏幕宽高
本文链接:https://www.haomeiwen.com/subject/mukofqtx.html
网友评论