Is not possible to change color of selected Picker Item
I checked Picker.Item documentation and source code and apparentely there is not property to change the color of selected item.
I only found a way to change all Picker Items:
<Picker itemTextStyle={{color: '#000000'}
But I think is expected a way to change the selected item color.
#1653
I see that is not possible.
What is expected with that issue is implement that, not close. If is not possible to pass "selected style" to Picker, another implement suggestion:
<Picker.Item label="My Item" value="My Item" textStyle={{color: '#66bdca'}}/>
The is no problem to do that. The work is just get Picker.Item style and pass to
@SupriyaKalghatgi I suggest to keep it open and implement that strategy. It is very simple to implement. If you accept that strategy I could do a PR.
<Picker.Item color='#000' label={Platform.OS === 'ios'?<Text style={{color:'#000'}}>{label} < /Text>:label} value='' />
i want to change the selected text icon, the tick icon
I want to change the selected text icon, the tick icon too. Can someone help us, please?
I want to change the selected text icon, the tick icon too. Can someone help us, please?
its very easy just use Variable.js (you need to generate from https://nativebase.io/customizer/), After this add a class radioColor and pass the value. then your tick icon color will be change.
you can use like this for selected value from PICKER: <Picker.Item color={(this.state.selectedId =='id') ? 'red' : 'grey' } label={'Value'} value={'id'} />