react-native-paper-dropdown icon indicating copy to clipboard operation
react-native-paper-dropdown copied to clipboard

How can I tell the dropdown that it should render error styling?

Open JPStrydom opened this issue 2 years ago • 1 comments

Most of the react-native-paper input components take in an error prop which gives the input an error styling. Look at react-native-paper's TextInput component or react-native-paper-dates' DatePickerInput component.

Is there a way to achieve the same with react-native-paper-dropdown?

JPStrydom avatar Apr 21 '23 15:04 JPStrydom

@JPStrydom You can do it like this:

<DropDown
     ...
     inputProps={{
       error: true|false,
     }}/>

aubryll avatar Sep 18 '23 09:09 aubryll

Should be fixed in latest release v2.0.3, did a full refactor of library so docs are in WIP, meanwhile you can check the example folder for demo code.

fateh999 avatar Jul 20 '24 15:07 fateh999