Skip to content

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

Merged
oblador merged 1 commit intooblador:masterfrom
Harsh0:fix/android-crash-jsmodule-access
Mar 8, 2024
Merged

fix(android): crash when library try to access JSModule before it is initialized#107
oblador merged 1 commit intooblador:masterfrom
Harsh0:fix/android-crash-jsmodule-access

Conversation

@Harsh0
Copy link
Copy Markdown
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
@Harsh0
Copy link
Copy Markdown
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
Copy Markdown
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.

r0h0gg6 pushed a commit to r0h0gg6/react-native-performance that referenced this pull request Jul 27, 2025
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