-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[FIX] Black screen during Share #3320
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
[FIX] Black screen during Share #3320
Conversation
LevyCosta
left a comment
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.
lgtm
| const { | ||
| title_link, image_url, image_type, video_url, video_type | ||
| } = attachment; | ||
| const { title_link, image_url, image_type, video_url, video_type } = attachment; |
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.
Unrelated, but prettier asked me to change.
It won't hurt :)
9996234 to
3b08b43
Compare
|
The issue is that we're calling |
|
@cprice-kgi Merged. Thanks for your contribution :) |
|
Is this the same problem that happens when one tries to share a audio received on whatsapp with someone on rockechat ? After choosing the contact for share, rocketchat gets stuck on a blank window. ( on android , running version 4.20) |
Proposed changes
Something about RNSplashScreen.hide is causing an issue here. I wrapped the call in a try/catch.
Issue(s)
#3088
How to test or reproduce
Try to share an image either from within the app or from an another application to the app. After investigation, I have found this issue appears only when the server has the mobile screen lock value enabled. If it is disabled, sharing will work fine. If enabled, the call to RNSplashScreen.hide will cause a black screen to appear, and the user is unable to proceed.
Screenshots
Types of changes
Checklist
Further comments
N/A