ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.67k stars 2.41k forks source link

Android SegmentedControl tintColor设置白色,title选中状态不对 #2359

Closed yinchonging closed 6 years ago

yinchonging commented 6 years ago

Version

2.1.6

Environment

"react-native": "^0.52.0","antd-mobile": "^2.1.6", Android 6.0

Reproduction link

https://github.com/ant-design/ant-design-mobile/issues?utf8=%E2%9C%93&q=SegmentedControl

Steps to reproduce

What is expected?

What is actually happening?


源码是这么写的:

var itemStyle = { color: selected ? '#fff' : tintColor, backgroundColor: selected ? tintColor : 'transparent', borderColor: tintColor };

color选中为白色,但ios显示为蓝色,android显示为白色,如果设置tintColor为白色,问题即出现

2018-02-28 3 26 05

ant-design-bot commented 6 years ago

It will be better to write your issue/comment in English, so more people can understand you. And this means that more people can help you or benefit from your issue/comment. See: https://github.com/ant-design/ant-design/issues/4897

warmhug commented 6 years ago

底色为蓝色引起的问题?这种颜色设置需要搭配着做吧...