n4kz / react-native-material-dropdown

Material dropdown with consistent behaviour on iOS and Android
Other
732 stars 597 forks source link

Dropdown arrow, renderAccessory, is not showing up #254

Open varun-batta-vc opened 3 years ago

varun-batta-vc commented 3 years ago

I am using react-native 0.63.2, and have imported dropdown from react-native-material-dropdown-v2. I've created a simple dropdown with data, value, and onChangeText props. However, for some reason, the dropdown arrow never shows, even if I change the renderAccessory prop or the baseColor or anything else. Any suggestions?

dillonkuester commented 3 years ago

Looking for suggestions as well.

MakChan commented 3 years ago

react-native-material-dropdown-v2 uses TextInput from react-native-paper while react-native-material-dropdown uses react-native-material-textfield. TextInput doesn't take renderAccessory prop instead it takes a right prop where a TextInput.Icon component can be passed. You can fork the repo and make these changes like I did here.