const ScreenWidth = Dimensions.get('window').width;
static DimensionsTransform(px) {
// 设计图纸以750为基准
return px/750*ScreenWidth
}
const ScreenWidth = Dimensions.get('window').width;
static DimensionsTransform(px) {
// 设计图纸以750为基准
return px/750*ScreenWidth
}
转载于:https://www.cnblogs.com/jkr666666/p/10020471.html