From cdf503afeebc561aed328d487723ae33e3d50e8d Mon Sep 17 00:00:00 2001 From: caserKing Date: Mon, 16 Sep 2019 21:12:04 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A4=A7=E5=B1=8F=E3=80=91=E3=80=90?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E3=80=91=E3=80=90=E5=95=86=E6=88=B7=E6=8E=92?= =?UTF-8?q?=E8=A1=8C=E5=AD=97=E5=8F=B7=E8=B0=83=E6=95=B44=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/App.js b/App.js index 580ddb3..b9f17a5 100644 --- a/App.js +++ b/App.js @@ -498,6 +498,10 @@ renderRankDom() { //每一条 rank rankItemDom(item,index) { let fontSizeNum = 40/(PixelRatio.get()); + let curStyleObj = { + width: fontSizeNum, + height: fontSizeNum + } return ( {/* */} @@ -510,8 +514,8 @@ rankItemDom(item,index) { score={item.starNum} allowsHalfStars={true} accurateHalfStars={true} - emptyStarImage={} - filledStarImage={} + emptyStarImage={} + filledStarImage={} scoreTextStyle={{color:'#fff'}} /> @@ -522,8 +526,8 @@ rankItemDom(item,index) { score={item.starNum} allowsHalfStars={true} accurateHalfStars={true} - emptyStarImage={} - filledStarImage={} + emptyStarImage={} + filledStarImage={} scoreTextStyle={{color:'#fff'}} />