I am trying to style the selector background in the picker component, Where there is the grey background in the picture below. I am trying to change it to a white background and have a border around it.
<Picker
selectedValue={selectedProject}
onValueChange={(text) => {
setSelectedProject(text as string);
}}
style={{
width: '50%',
alignSelf: 'center',
}}
itemStyle={{
height: 200,
}}>
<Picker.Item key={'all'} label={'all'} value={'all'} />
<Picker.Item key={'all1'} label={'all1'} value={'all1'} />
<Picker.Item key={'all2'} label={'all2'} value={'all2'} />
</Picker>
I have tried everything - which makes me think it cannot be done.
I have tried adding backgroundColour
/ colour
properties to the style
and itemStyle
of the Picker
component but neither of those works.
Is it possible to style this grey selection box?