-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: passcode update issues on iOS #6547
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
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughFixes an iPhone app hang when changing passcode by reusing a ref in PasscodeChoose, adding React keys to prevent re-rendering issues in passcode components, and introducing a 1-second delay workaround in ScreenLockConfigView before modal presentation. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (4)
🧰 Additional context used🧬 Code graph analysis (1)app/views/ScreenLockConfigView.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
||
| return ( | ||
| <Base | ||
| key={"passcode-enter"} |
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.
can you remove this because it is not required
|
|
||
| return ( | ||
| <Base | ||
| key={"passcode-choose"} |
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.
can you remove this because it is not required
| const marginLeft = lengthSup ? 10 - (SIZE_FULL - SIZE_EMPTY) / 2 : 10; | ||
| return ( | ||
| <View style={styles.dotsView}> | ||
| <View key={val} style={styles.dotsView}> |
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.
can you remove this because it is not required
| if (autoLock) { | ||
| await handleLocalAuthentication(true); | ||
| } | ||
| console.log('IOS workaround - waiting 1 sec...'); |
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.
Remove this one
| } | ||
| console.log('IOS workaround - waiting 1 sec...'); | ||
| await new Promise(resolve => setTimeout(resolve, 1000)); | ||
| console.log('IOS workaround - waiting 1 sec...done'); |
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.
Remove this one
|
Hey @paviad, can you please make the changes |
Proposed changes
For some reason, the code works fine on Android but doesn't work on iOS. I tracked it down to a weird timing issue and added a delay in the appropriate place.
Issue(s)
Resolves #6313
Types of changes
Checklist
Further comments
This fix feels more like a workaround than a proper fix, however creating a proper fix for this is not something that I would be able to achieve in reasonable time.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.