Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Added clear functionality to icon in the Input component #79

wants to merge 4 commits into from

Conversation

mhmd21
Copy link

@mhmd21 mhmd21 commented Mar 16, 2021

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.

@netlify
Copy link

netlify bot commented Mar 16, 2021

Deploy preview for rne-playground ready!

Built with commit 5639802

https://deploy-preview-79--rne-playground.netlify.app

Copy link

@shivambalwani shivambalwani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great job!

Copy link
Member

@pranshuchittora pranshuchittora left a 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

@mhmd21
Copy link
Author

mhmd21 commented Mar 19, 2021

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.

@pranshuchittora
Copy link
Member

CI is failing, can you pls pull the new changes from the master.

@pranshuchittora
Copy link
Member

LGTM

@pranshuchittora
Copy link
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants