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

UserStatusScreen: Convert to use hooks & react navigation v5 #4447

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

karanb1
Copy link

@karanb1 karanb1 commented Jan 29, 2021

This is the PR in the series of cleanup of navigation logic and component.

Following #4443, It converts the UserStatusScreen into hooks based component. NavigationService is replaced with the action provided by the useNavigation Hooks.

Conversion of class based component into function based component.
Replacing NavigationService with the v5 useNavigation Hook.
Removing connect and the dispatch with appropriate useSelector and useDispatch redux hooks
Using useState hook to handle local state of the component.
@karanb1 karanb1 changed the title UserStatusScreen: Covert to use hooks & react navigation v5 UserStatusScreen: Convert to use hooks & react navigation v5 Feb 1, 2021
@karanb1
Copy link
Author

karanb1 commented Feb 2, 2021

@chrisbobbe Thank you for allowing me to work on this issue, can you please review my code. I am planning to add more commits to this PR with changes to other components as well, your feedback will help me in making the right changes.

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.

1 participant