react-native 适配问题

const ScreenWidth = Dimensions.get('window').width;

static DimensionsTransform(px) {
        // 设计图纸以750为基准
        return px/750*ScreenWidth
    }

  

原文地址:https://www.cnblogs.com/jkr666666/p/10020471.html