srivastavaanurag79 / react-native-paper-select

Dropdown using React Native Paper TextInput, Checkbox and Dialog
https://anurag-srivastava.gitbook.io/react-native-paper-select/
MIT License
48 stars 15 forks source link

fix: Add 'icon' props in TextInput.Icon for React Native Paper v5.x compatibility #28

Closed avianto closed 1 year ago

avianto commented 1 year ago

React Native Paper v5.x renamed TextInput.Icon props "name" to "icon", so the dropdown icon (chevron-down) does not appear in v5.x. Adding "icon" props to ensure it also appears in v5.x.

srivastavaanurag79 commented 1 year ago

Is it backwards compatible?

avianto commented 1 year ago

I left the "name" props for backward compatibility, v5.x will just ignored it.