nkbt / react-debounce-input

React component that renders Input with debounced onChange
MIT License
450 stars 61 forks source link

react-native support #148

Closed vtaits closed 2 years ago

vtaits commented 2 years ago

TextInput of react-native has a different event in onChange

https://reactnative.dev/docs/textinput#onchange

Also it uses onKeyPress instead of onKeyDown

https://reactnative.dev/docs/textinput#onkeypress

Looks like needs to add new props:

nkbt commented 2 years ago

I am not working with react native Definitely not going to add more props to this component 💯 I suggest forking and updating for react native specifically. There is no sense making component more complex if you can just copy it and update for your usecase