fix: De-allocate frame HybridClass with JNI class loader if using Hermes (#455)

* De-allocate `frame` HybridClass with JNI class loader if using Hermes

See 1b3a0c2612

* Don't wrap in `#if FOR_HERMES`, other `jsi::Runtime`s might also run GC on another Thread.

* Use `jni::local_ref` for `FrameHostObject`

* Update JImageProxyHostObject.cpp

* Only run with JNI `ClassLoader` if ctor Thread ID != dtor Thread ID

* Upgrade reanimated to 2.3.0-beta.1 to fix JNI crash

* Remove `this_thread::get_id()`

* Update Podfile.lock
This commit is contained in:
Marc Rousavy
2021-09-24 16:57:12 +02:00
committed by GitHub
parent 98f58367d3
commit 60ea779ffe
8 changed files with 31 additions and 18 deletions

View File

@@ -83,7 +83,7 @@
"react": "^17.0.2",
"react-native": "^0.65.1",
"react-native-builder-bob": "^0.18.1",
"react-native-reanimated": "^2.3.0-alpha.3",
"react-native-reanimated": "^2.3.0-beta.1",
"release-it": "^14.11.5",
"typescript": "^4.4.3"
},