react-native-percentage-circle icon indicating copy to clipboard operation
react-native-percentage-circle copied to clipboard

请问有没有彻底的解决方案,关于小于50时,android显示没有从12点钟方向开始的问题

Open zhuozp opened this issue 7 years ago • 4 comments

如题,之前给出的fix仍然存在问题

zhuozp avatar Aug 22 '17 08:08 zhuozp

非常感谢作者开源!我的三星A900出现percent小于50,起点错误问题

basilbai avatar Sep 25 '17 11:09 basilbai

i have solved the issue,you need change these codes:

#line 11 import Platform

#line 96 // rightTransformerDegree = '0deg'; // leftTransformerDegree = -(50-percent) * 3.6 + 'deg';

if (Platform.OS == 'ios') { leftTransformerDegree = '0deg'; rightTransformerDegree = percent * 3.6 + 'deg'; }else{ leftTransformerDegree = '0deg'; rightTransformerDegree = -(50-percent) * 3.6 + 'deg'; }

#line 157 //backgroundColor: this.props.percent < 50 ? this.props.bgcolor : this.props.color,

backgroundColor: Platform.OS == 'ios' ? this.props.color : this.props.percent < 50 ? this.props.bgcolor : this.props.color,

line number maybe is wrong,just search the code :)

bianbiandashen avatar Feb 01 '18 02:02 bianbiandashen

@bianbiandashen I have try you solution on Android 8.1 Pixel 2XL, but still have problem. So you can try on this device on emulator

UniKylin avatar Apr 17 '18 18:04 UniKylin

react version 16.3.0 and react-native version 0.54.2

UniKylin avatar Apr 17 '18 18:04 UniKylin