-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Get paste context working for password fields (onboarding) #1831
Conversation
6d3a93d
to
b7383c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the desired effect fail if we leave the width as 100% in styles without having it inside the state being modified on component mount?
sadly yes. you can read more about the issue here: facebook/react-native#9958 (comment) fb has multiple "stale" issues outlining the problem. you can see another fix we applied for the same thing here: #1548 |
I've seen others solve it by mounting the text component with |
3aa9dcc
to
7e02b06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say as long as there are no perf drawbacks from using setTimeout then no problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix looks good now, QA Passed 👍
* Get paste context working for password fields (onboarding), closes #1826 * Update snapshots * Update inputWidth * update snapshot
Description
This ensures paste context comes back for the password fields on onboarding:
Checklist
Issue
Resolves #1826