-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added clear functionality to icon in the Input component #79
base: master
Are you sure you want to change the base?
Conversation
Deploy preview for rne-playground ready! Built with commit 5639802 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great job!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works but seems not the right approach. Can you fix this using the state hook
https://react-view.netlify.app/?path=/story/useview--state-hook
I have changed the implementation to use the state hook instead. |
CI is failing, can you pls pull the new changes from the master. |
LGTM |
Thanks |
What kind of change does this PR introduce?
I have added clearing functionality to the close icon inside of the input component.
Did you add tests for your changes?
It is not needed.
If relevant, did you update the documentation?
It is irrelevant.
Summary
Attached Ref to the Input component and accessed it inside the icon's onPress function.
Issue #70.
Does this PR introduce a breaking change?
No it doesn't introduce any breaking changes.