AdelRedaa97 / react-native-select-dropdown

react-native-select-dropdown is a highly customized dropdown | select | picker | menu for react native that works for andriod and iOS platforms.
MIT License
314 stars 134 forks source link

Define styles for defaultButtonText (placeholder) #108

Closed xnejp03 closed 1 year ago

xnejp03 commented 1 year ago

It's be nice to be able to define different style for the placeholder text (eg color).

Is it currently possible?

joshuakwak commented 1 year ago

Use buttonTextStyle prop

buttonTextStyle={{ color: 'white', }}

xnejp03 commented 1 year ago

But won't that then affect the selected colour too? I want placeholder to be different from the eventual value being selected.

On Mon, 19 Dec 2022, 06:41 Joshua Bauca, @.***> wrote:

Use buttonTextStyle prop

buttonTextStyle={{ color: 'white', }}

— Reply to this email directly, view it on GitHub https://github.com/AdelRedaa97/react-native-select-dropdown/issues/108#issuecomment-1357127788, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ7YSHBV32B4IVUK6L3NOTWN7YQHANCNFSM6AAAAAATCYI54I . You are receiving this because you authored the thread.Message ID: @.*** com>

joshuakwak commented 1 year ago

I used State. As of now this is my workaround since there's no separate styling prop for the defaultButtonText.

image image

hopefully it helps.

xnejp03 commented 1 year ago

Thanks.

satyabrata-dash5 commented 1 year ago

Not working