Skip to content

Added clear functionality to icon in the Input component#79

Open
mhmd21 wants to merge 4 commits into
react-native-elements:masterfrom
mhmd21:componentsFixes
Open

Added clear functionality to icon in the Input component#79
mhmd21 wants to merge 4 commits into
react-native-elements:masterfrom
mhmd21:componentsFixes

Conversation

@mhmd21

@mhmd21 mhmd21 commented Mar 16, 2021

Copy link
Copy Markdown

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

netlify Bot commented Mar 16, 2021

Copy link
Copy Markdown

Deploy preview for rne-playground ready!

Built with commit 5639802

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

@shivambalwani shivambalwani left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

great job!

@pranshuchittora pranshuchittora left a comment

Copy link
Copy Markdown
Member

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

mhmd21 commented Mar 19, 2021

Copy link
Copy Markdown
Author

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
Copy Markdown
Member

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

@pranshuchittora

Copy link
Copy Markdown
Member

LGTM

@pranshuchittora

Copy link
Copy Markdown
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.

3 participants