Skip to content

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

Open
karanb1 wants to merge 1 commit intozulip:mainfrom
karanb1:pr-navigation-cleanup
Open

UserStatusScreen: Convert to use hooks & react navigation v5#4447
karanb1 wants to merge 1 commit intozulip:mainfrom
karanb1:pr-navigation-cleanup

Conversation

@karanb1
Copy link
Copy Markdown

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