diff --git a/App.js b/App.js index 4b7b545..9d8d47f 100644 --- a/App.js +++ b/App.js @@ -497,6 +497,7 @@ renderRankDom() { } //每一条 rank rankItemDom(item) { + let fontSizeNum = 34/PixelRatio.get(); return ( {/* */} @@ -509,8 +510,8 @@ rankItemDom(item) { score={item.starNum} allowsHalfStars={true} accurateHalfStars={true} - emptyStarImage={} - filledStarImage={} + emptyStarImage={} + filledStarImage={} scoreTextStyle={{color:'#fff'}} /> @@ -521,8 +522,8 @@ rankItemDom(item) { score={item.starNum} allowsHalfStars={true} accurateHalfStars={true} - emptyStarImage={} - filledStarImage={} + emptyStarImage={} + filledStarImage={} scoreTextStyle={{color:'#fff'}} /> @@ -1447,18 +1448,13 @@ MyPage = CodePush(codePushOptions)(MyPage); marginLeft: 10/PixelRatio.get(), }, - - starImg: { - width: 30/PixelRatio.get(), - height: 30/PixelRatio.get(), - - }, starTitle: { - fontSize: 30/PixelRatio.get(), + fontSize: 34/PixelRatio.get(), }, merchantText: { + fontSize: 40/PixelRatio.get(), fontWeight : 'bold', marginBottom:10/PixelRatio.get(), marginTop:10/PixelRatio.get(),