fateh999 / react-native-paper-dropdown

Dropdown using react native paper TextInput and Menu
MIT License
130 stars 74 forks source link

Options do not appear on Android due to inactive color. #9

Closed ozanmanav closed 3 years ago

ozanmanav commented 3 years ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch react-native-paper-dropdown@0.0.5 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-paper-dropdown/dist/DropDown.js b/node_modules/react-native-paper-dropdown/dist/DropDown.js
index 091b0bf..39041df 100644
--- a/node_modules/react-native-paper-dropdown/dist/DropDown.js
+++ b/node_modules/react-native-paper-dropdown/dist/DropDown.js
@@ -33,7 +33,7 @@ const DropDown = forwardRef((props, ref) => {
           {list.map((_item, _index) => (<Menu.Item key={_index} theme={theme} titleStyle={{
         color: value === _item.value
             ? activeColor || (theme || activeTheme).colors.primary
-            : undefined,
+            : 'black',
     }} onPress={() => {
         setValue(_item.value);
         if (onDismiss) {

This issue body was partially generated by patch-package.

fateh999 commented 3 years ago

Already fixed in latest release.