feat(auth): add password visibility toggle #62
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Title
feat(formulus): add password visibility toggle to login form
Type of Change
Component(s) Affected
Related Issue(s)
Closes/Fixes/Resolves:
Related:
closes #34
Description
Summary
Add reusable PasswordInput component with eye icon toggle for show/hide password functionality in the login form and other password input fields.
Changes Made
PasswordInputcomponent atformulus/src/components/common/PasswordInput.tsxwith visibility toggle functionalityeyeandeye-officonsSettingsScreen.tsxto use the newPasswordInputcomponent instead of plainTextInputwithsecureTextEntryPasswordInputandPasswordInputPropsfromformulus/src/components/common/index.tsRationale / Context
Problem:
Users cannot verify their password input while typing in the login form, which can lead to login errors and poor user experience. There was no way to toggle password visibility in password input fields.
Solution:
Created a reusable
PasswordInputcomponent that:secureTextEntry = true)Alternatives Considered:
Testing Instructions
Prerequisites
Steps to Test
eye(when hidden) andeye-off(when visible)Expected Behavior
Test Coverage
Test Results
Manually tested on iOS and Android. Component works as expected with proper icon toggling and accessibility support.
Breaking Changes
If breaking changes, please describe:
N/A
Migration Steps:
N/A
Documentation Updates
Files Updated:
N/A
New Documentation:
N/A
Screenshots / Videos
Before
Password input field with only
secureTextEntry- no way to view password while typing.After
Password input field with eye icon toggle button on the right side, allowing users to show/hide password.
Screen.Recording.2025-12-11.at.18.20.31.mov
Performance Impact
Details:
No performance impact. Component uses standard React Native components and state management.
Security Considerations
Details:
Password visibility toggle is a standard UX pattern. Password remains secure by default (hidden), and users can choose to reveal it temporarily. This does not change the underlying security of password storage or transmission.
Checklist
Code Quality
Testing
Linting & Formatting
npm run lint/go fmt/ etc.)Git & PR Standards
main(or target branch)Documentation
Review Readiness
Additional Notes
react-native-vector-iconsdependency (MaterialCommunityIcons) - no new dependencies addedReviewer Notes
Suggested Reviewers:
Priority:
Related PRs