I am not able to change the background colour of dropdown in react-native-picker and its currently showing grey. I am using https://www.npmjs.com/package/@react-native-picker/picker
Asked
Active
Viewed 1,667 times
1 Answers
0
Did you try
style={{ backgroundColor: "red" }} // Or whatever color you like..
Like this
<Picker
selectedValue={selectedLanguage}
style={{ backgroundColor: "red" }}
onValueChange={(itemValue, itemIndex) =>
setSelectedLanguage(itemValue)
}>
<Picker.Item label="Java" value="java" />
<Picker.Item label="JavaScript" value="js" />
</Picker>

Kartikey
- 4,516
- 4
- 15
- 40
-
He wants to change the color of the dropdown when open. – Nam Lee Aug 23 '22 at 07:44