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

1

There are 1 answers

1
Kartikey On

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>