Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhuozp opened this issue Aug 22, 2017 · 4 comments

Comments

@zhuozp
Copy link

zhuozp commented Aug 22, 2017

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

@basilbai
Copy link

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

@bianbiandashen
Copy link

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 :)

@UniKylin
Copy link

@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
Copy link

react version 16.3.0 and react-native version 0.54.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants