Rocket.Chat.ReactNative
Rocket.Chat.ReactNative copied to clipboard
Changing ProfileView Class Component to Hook Component
Proposed changes
Changing ProfileView
from a class component to a hook component for using react-hook-form
.
Issue(s)
Solves This Issue : #5544
How to test or reproduce
Screenshots
Types of changes
- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] Improvement (non-breaking change which improves a current function)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Documentation update (if none of the other choices apply)
Checklist
- [x] I have read the CONTRIBUTING doc
- [ ] I have signed the CLA
- [ ] Lint and unit tests pass locally with my changes
- [ ] I have added tests that prove my fix is effective or that my feature works (if applicable)
- [ ] I have added necessary documentation (if applicable)
- [ ] Any dependent changes have been merged and published in downstream modules
Further comments
@GleidsonDaniel , @diegolmello , Please take a look.
Hey @diegolmello, #5544 this PR is for integrating react-hook-form
Let me know if any other files, like RegisterView need to be changed from class to function components. Thank you.