react-native-nitro-markdown 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
#include <jni.h>
|
|
2
|
+
#include <fbjni/fbjni.h>
|
|
2
3
|
#include "NitroMarkdownOnLoad.hpp"
|
|
3
4
|
|
|
4
5
|
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void*) {
|
|
5
|
-
return
|
|
6
|
+
return facebook::jni::initialize(vm, []() {
|
|
7
|
+
margelo::nitro::Markdown::registerAllNatives();
|
|
8
|
+
});
|
|
6
9
|
}
|
|
7
10
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
package com.nitromarkdown
|
|
2
2
|
|
|
3
|
-
import com.facebook.react.
|
|
3
|
+
import com.facebook.react.BaseReactPackage
|
|
4
4
|
import com.facebook.react.bridge.NativeModule
|
|
5
5
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
6
6
|
import com.facebook.react.module.model.ReactModuleInfoProvider
|
|
7
7
|
import com.facebook.react.uimanager.ViewManager
|
|
8
8
|
import com.margelo.nitro.com.nitromarkdown.NitroMarkdownOnLoad
|
|
9
9
|
|
|
10
|
-
class NitroMarkdownPackage :
|
|
10
|
+
class NitroMarkdownPackage : BaseReactPackage() {
|
|
11
11
|
companion object {
|
|
12
12
|
init {
|
|
13
13
|
NitroMarkdownOnLoad.initializeNative()
|
package/package.json
CHANGED