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

fix(android): crash when library try to access JSModule before it is initialized #107

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

Harsh0
Copy link
Contributor

@Harsh0 Harsh0 commented Mar 7, 2024

This PR fixes Crash on Android when using this library #106

To solve this problem, we need to check if ReactContext is initialized.

Ref: https://stackoverflow.com/questions/41120491/react-native-reactcontext-lifecycle-stuck-on-before-create

@oblador oblador merged commit 98746a9 into oblador:master Mar 8, 2024
6 checks passed
@Harsh0
Copy link
Contributor Author

Harsh0 commented Mar 8, 2024

Thanks for reviewing and merge. Are we going to see new version published soon with this change?

@Harsh0 Harsh0 deleted the fix/android-crash-jsmodule-access branch March 8, 2024 20:43
@oblador
Copy link
Owner

oblador commented Mar 8, 2024

It's published now, wanted to bump React Native, Flipper etc first, but it seems Flipper is pretty broken these days and I gave up for now.

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

Successfully merging this pull request may close these issues.

2 participants