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
320 stars 137 forks source link

Dropdown Style will not work with dynamic values. #99

Closed jlm0 closed 1 year ago

jlm0 commented 1 year ago

The dropdown style doesn't work with dynamic styles. For example, if the dropdown receives a dynamic backgroundColor style from the parent components state (or global state) it will not adjust its stylings. The buttonStylewill adjust to the same dynamic variable but the dropdown won't. For example expo snack where the onSelect changes a state color value. It appropriately changes the background of the button but not the dropdowns: https://snack.expo.dev/x5K3sXCw0

AdelRedaa97 commented 1 year ago

fixed in version "3.0.3" try it in your example and tell me if it still not working

jlm0 commented 1 year ago

Test it out on the snack example. Works great. Thanks! Will try it out in my project.