fateh999 / react-native-paper-dropdown

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

Fixed issues with dropDownStyle #20

Closed Zac-Evans closed 3 years ago

Zac-Evans commented 3 years ago

I was having issues styles applying to the dropdown via the dropDownStyles prop. I'm not sure if it's the best solution, but I moved the styling for the dropdown from the Menu component to the TextInput component. Styles also worked if it was moved to the parent View component. However, doing so did not work if it referenced the inputLayout state. So I removed references to the layout, which is where I'm not sure if this is the best solution.

Also, I changed the ts file so that setValue had the type of Dispatch<SetStateAction<string | number | undefined>>.

fateh999 commented 3 years ago

Thanks, for the PR, but i already added the props to modify the styles.