hossein-zare / react-native-dropdown-picker

A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.
https://hossein-zare.github.io/react-native-dropdown-picker-website/
MIT License
1k stars 297 forks source link

Not switching DarkMode when rendered #744

Open Wolk9 opened 9 months ago

Wolk9 commented 9 months ago

I use the dropdownpicker in a react native app in combination with native-paper and MD3 Material3 themes.

When switching from dark to light and vice versa everything is switching appropriately execept the dropdownpicker. I have implemented the .setStheme helperfunction, but I wont change directly, not even in a useEffect. Until the first click in the dropdown, the mode switches to the appropriate mode.

simulator_screenshot_E80A628F-AC0D-47FE-A54D-352A7846F91B simulator_screenshot_9AA667E3-A0EB-42FB-B8E7-7EB79B9BF2F8 simulator_screenshot_38D32661-972B-4384-90D9-91A793580B0E

How do I invoke a complete render of the dropdown?