| 93 | } |
| 94 | |
| 95 | static void onMainLoopIdle( |
| 96 | jni::alias_ref<jclass>, |
| 97 | jni::alias_ref<facebook::react::JRuntimeExecutor::javaobject> |
| 98 | runtimeExecutor) { |
| 99 | runtimeExecutor->cthis()->get()([](jsi::Runtime &runtime) { |
| 100 | auto v8Runtime = dynamic_cast<V8Runtime *>(&runtime); |
| 101 | if (v8Runtime) { |
| 102 | v8Runtime->OnMainLoopIdle(); |
| 103 | } |
| 104 | }); |
| 105 | } |
| 106 | |
| 107 | static void registerNatives() { |
| 108 | registerHybrid({ |
nothing calls this directly
no test coverage detected