fateh999 / react-native-paper-dropdown

Dropdown using react native paper TextInput and Menu
121 stars 72 forks source link

Is there any way to change the background colour? #68

Open shubhadeep-kartbite opened 2 years ago

shubhadeep-kartbite commented 2 years ago

I want to make the backgroud color to white

Screenshot 2022-05-27 at 01 31 07

vikramkaldoke commented 2 years ago

yes! you can change background color using inputProps. inputProps={{ style: { borderColor: color.tertiary.pink_100, backgroundColor: color.tertiary.aquaGreen2, height: 56, }, underlineColor: color.tertiary.darkAquaGreen, activeOutlineColor: color.primary.black, }}

shubhadeep-kartbite commented 2 years ago

thanks @vikramkaldoke 👍

Koxx3 commented 2 years ago

hello, I am looking to do the same. I use the "outlined" mode, backgroundColor works... but borderColor doesn't. any idea ? thanks

Yennnful commented 1 year ago

yes! you can change background color using inputProps. inputProps={{ style: { borderColor: color.tertiary.pink_100, backgroundColor: color.tertiary.aquaGreen2, height: 56, }, underlineColor: color.tertiary.darkAquaGreen, activeOutlineColor: color.primary.black, }}

@Koxx3 just like @vikramkaldoke said, use inputProps try putting outlineColor instead of active outline color something like: inputProps={{ style: { backgroundColor: color.tertiary.aquaGreen2, height: 56, }, outlineColor: 'green' // you need this }}