From bda693f88fccf63350c242b40864b6137b9312ab Mon Sep 17 00:00:00 2001 From: caserKing Date: Fri, 9 Aug 2019 19:08:52 +0800 Subject: [PATCH] width --- App.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/App.js b/App.js index 1523596..bac341e 100644 --- a/App.js +++ b/App.js @@ -640,8 +640,8 @@ getAdView(){ ref={'carousel'} data={adDataList} renderItem={this.setSwiperItemDom} - sliderWidth={394} - itemWidth={394} + sliderWidth={394*PixelRatio.get()} + itemWidth={394*PixelRatio.get()} itemHeight={134} sliderHeight={134} activeSlideOffset={0} @@ -1175,8 +1175,8 @@ MyPage = CodePush(codePushOptions)(MyPage); contentItemTopForAd:{ flex: 1, - // width: 1127/PixelRatio.get(), - width: '100%', + width: 1127/PixelRatio.get(), + // width: '100%', height:'100%', paddingLeft: 22/PixelRatio.get(), paddingRight: 26/PixelRatio.get(),