-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
karol-bisztyga
committed
Mar 2, 2021
1 parent
6dba77d
commit dfbdb2a
Showing
7 changed files
with
92 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include <jsi/jsi.h> | ||
#include <jni.h> | ||
#include <fbjni/fbjni.h> | ||
// #include "DraftNativeModule.h" | ||
|
||
using namespace facebook; | ||
/**/ | ||
extern "C" | ||
{ | ||
JNIEXPORT void JNICALL | ||
Java_com_rnfbjni_MainActivity_install(JNIEnv *env, jobject thiz, jlong runtimePtr) | ||
{ | ||
jsi::Runtime *runtime = (jsi::Runtime *)runtimePtr; | ||
// std::shared_ptr<comm::DraftNativeModule> nativeModule = std::make_shared<comm::DraftNativeModule>(jsCallInvoker); | ||
// | ||
// runtime->global().setProperty( | ||
// runtime, | ||
// jsi::PropNameID::forAscii(*runtime, "commModule"), | ||
// jsi::Object::createFromHostObject(runtime, nativeModule)); | ||
runtime->global().setProperty( | ||
*runtime, | ||
jsi::PropNameID::forAscii(*runtime, "mytest"), | ||
jsi::Value(*runtime, 777333)); | ||
} | ||
} | ||
/**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Mon Mar 01 17:15:43 CET 2021 | ||
#Tue Mar 02 12:48:36 CET 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip |