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

Crash error on android #507

Open
pierroo opened this issue Jan 25, 2024 · 5 comments
Open

Crash error on android #507

pierroo opened this issue Jan 25, 2024 · 5 comments

Comments

@pierroo
Copy link

pierroo commented Jan 25, 2024

bug report

I get this error when I try to "viewShotRefs?.current.capture().then..."
image

obviously there may be something wrong in my view that I have yet to find, but why does it crash?
it should simply go into the }).catch(e => { etc

Version & Platform

v3.7.0
RN 0.69.12

Platform: Android

Expected behavior

Actual behavior

Steps to reproduce the behavior

@songxiaoliang
Copy link

Same question

@songxiaoliang
Copy link

@pierroo solve it?

@pierroo
Copy link
Author

pierroo commented Mar 14, 2024

@songxiaoliang yup, not a sexy fix but I simply wrapped the capture in a 300ms timeout and it fixed it.
no clue why, let me know if it worked for you too?

@songxiaoliang
Copy link

@pierroo oh, no

@songxiaoliang
Copy link

@pierroo I've been practicing the implementation you've given me, and I haven't found any problems so far, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants