From a91a50cc49c6c5ed34036c17c96617a382b79a9c Mon Sep 17 00:00:00 2001 From: Nabil Hachicha Date: Mon, 11 Jan 2016 23:17:42 +0000 Subject: [PATCH] wip --- .../main/java/com/reacttests/RealmReactAndroid.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/react-native/android/app/src/main/java/com/reacttests/RealmReactAndroid.java b/react-native/android/app/src/main/java/com/reacttests/RealmReactAndroid.java index ea7c248b..7f39ec47 100644 --- a/react-native/android/app/src/main/java/com/reacttests/RealmReactAndroid.java +++ b/react-native/android/app/src/main/java/com/reacttests/RealmReactAndroid.java @@ -30,6 +30,10 @@ public class RealmReactAndroid extends ReactContextBaseJavaModule { @Override public void initialize() { + Exception exception = new Exception(); + exception.fillInStackTrace(); + exception.printStackTrace(); + 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_LONG_KEY, Toast.LENGTH_LONG); + Exception exception = new Exception(); + exception.fillInStackTrace(); + exception.printStackTrace(); + Log.w("RealmReactAndroid", injectRealmJsContext(filesDirPath)); return constants; @@ -52,6 +60,10 @@ public class RealmReactAndroid extends ReactContextBaseJavaModule { @ReactMethod public void resultOfJsContextInjection(Callback successCallback) { // Inject our JS Context + Exception exception = new Exception(); + exception.fillInStackTrace(); + exception.printStackTrace(); + successCallback.invoke(injectRealmJsContext(filesDirPath)); }