react-native 适配问题

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

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

  

posted @ 2018-11-26 15:17  年少的你如此美丽  阅读(269)  评论(0编辑  收藏  举报