File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
packages/create-react-native-library
templates/nitro-common/android/src/main/cpp Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11export const FALLBACK_BOB_VERSION = '0.41.0' ;
2- export const FALLBACK_NITRO_MODULES_VERSION = '0.35.2 ' ;
2+ export const FALLBACK_NITRO_MODULES_VERSION = '0.35.3 ' ;
33export const SUPPORTED_MONOREPO_CONFIG_VERSION = '0.3.3' ;
44export const SUPPORTED_REACT_NATIVE_VERSION = '0.83.0' ;
Original file line number Diff line number Diff line change 11#include < jni.h>
22#include " <%- project.package_cpp -%>OnLoad.hpp"
33
4+ #include < fbjni/fbjni.h>
5+
6+
47JNIEXPORT jint JNICALL JNI_OnLoad (JavaVM* vm, void *) {
5- return margelo::nitro::<%- project.package_cpp -%>::initialize (vm);
6- }
8+ return facebook::jni::initialize (vm, []() {
9+ margelo::nitro::<%- project.package_cpp -%>::registerAllNatives ();
10+ });
11+ }
You can’t perform that action at this time.
0 commit comments