Ei kuvausta

OnLoad.cpp 381B

1234567891011
  1. #include <fbjni/fbjni.h>
  2. #include "MainApplicationTurboModuleManagerDelegate.h"
  3. #include "MainComponentsRegistry.h"
  4. JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) {
  5. return facebook::jni::initialize(vm, [] {
  6. facebook::react::MainApplicationTurboModuleManagerDelegate::
  7. registerNatives();
  8. facebook::react::MainComponentsRegistry::registerNatives();
  9. });
  10. }