This commit is contained in:
Nabil Hachicha 2016-01-11 23:17:42 +00:00
parent 6426d48d57
commit a91a50cc49
1 changed files with 12 additions and 0 deletions

View File

@ -30,6 +30,10 @@ public class RealmReactAndroid extends ReactContextBaseJavaModule {
@Override @Override
public void initialize() { public void initialize() {
Exception exception = new Exception();
exception.fillInStackTrace();
exception.printStackTrace();
Log.w("RealmReactAndroid", injectRealmJsContext(filesDirPath)); Log.w("RealmReactAndroid", injectRealmJsContext(filesDirPath));
} }
@ -44,6 +48,10 @@ public class RealmReactAndroid extends ReactContextBaseJavaModule {
constants.put(DURATION_SHORT_KEY, Toast.LENGTH_SHORT); constants.put(DURATION_SHORT_KEY, Toast.LENGTH_SHORT);
constants.put(DURATION_LONG_KEY, Toast.LENGTH_LONG); constants.put(DURATION_LONG_KEY, Toast.LENGTH_LONG);
Exception exception = new Exception();
exception.fillInStackTrace();
exception.printStackTrace();
Log.w("RealmReactAndroid", injectRealmJsContext(filesDirPath)); Log.w("RealmReactAndroid", injectRealmJsContext(filesDirPath));
return constants; return constants;
@ -52,6 +60,10 @@ public class RealmReactAndroid extends ReactContextBaseJavaModule {
@ReactMethod @ReactMethod
public void resultOfJsContextInjection(Callback successCallback) { public void resultOfJsContextInjection(Callback successCallback) {
// Inject our JS Context // Inject our JS Context
Exception exception = new Exception();
exception.fillInStackTrace();
exception.printStackTrace();
successCallback.invoke(injectRealmJsContext(filesDirPath)); successCallback.invoke(injectRealmJsContext(filesDirPath));
} }