Skip to content
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

The app crashes while press r for reloading or restarting app using react-native-restart #23

Open
AhmedSamir74 opened this issue Jun 25, 2023 · 9 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists help wanted Extra attention is needed

Comments

@AhmedSamir74
Copy link

No description provided.

@nhhynd
Copy link

nhhynd commented Jun 27, 2023

same to me

@killserver
Copy link
Owner

only if use enableSecureView/useDisableSecureView?

@killserver killserver pinned this issue Jun 29, 2023
@killserver killserver unpinned this issue Jun 29, 2023
@killserver killserver added bug Something isn't working duplicate This issue or pull request already exists help wanted Extra attention is needed labels Jun 29, 2023
@killserver killserver added this to the bug disableSecureView milestone Jun 29, 2023
@niall-shaw
Copy link

@killserver - yes, it seems this only happens with enableSecureView/useDisableSecureView. If I use

RNScreenshotPrevent.enabled(true)
if (!__DEV__) RNScreenshotPrevent.enableSecureView()

it works fine.

@killserver
Copy link
Owner

@niall-shaw hmmm.. this error only in dev mode?

@niall-shaw
Copy link

niall-shaw commented Jul 3, 2023

@killserver Yes, because the problem only happens when you reload js bundle, which can only happen in DEV.

killserver added a commit that referenced this issue Oct 4, 2023
- try fix TurboModule for #27
- try fix crash restart app #23
@TereshchenkoVlad
Copy link

Same to me, app crash after R reloading.
Any solution?

@ozcanozgur
Copy link

@killserver - yes, it seems this only happens with enableSecureView/useDisableSecureView. If I use

RNScreenshotPrevent.enabled(true)
if (!__DEV__) RNScreenshotPrevent.enableSecureView()

it works fine.

The feature works fine, but there is one crucial problem. If code published with code push to the production app, it can cause a production crash. I need help resolving this issue.

@LazloN5
Copy link

LazloN5 commented Jul 23, 2024

This is just a workaround, not a fix.

In my case, I do an app reload when switching languages (Left to right -> right to left) which also crashes the app. @killserver is this something that will be fixed?

@7dp
Copy link

7dp commented Oct 7, 2024

Hey, thanks for this useful package!
Sorry for tagging you here, @killserver You have any chance to fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

8 participants