react-native-percentage-circle
react-native-percentage-circle copied to clipboard
请问有没有彻底的解决方案,关于小于50时,android显示没有从12点钟方向开始的问题
如题,之前给出的fix仍然存在问题
非常感谢作者开源!我的三星A900出现percent小于50,起点错误问题
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 I have try you solution on Android 8.1 Pixel 2XL, but still have problem. So you can try on this device on emulator
react version 16.3.0 and react-native version 0.54.2