|
|
@@ -47,18 +47,18 @@ public class MainApplication extends Application implements ReactApplication { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Loads Flipper in React Native templates. Call this in the onCreate method with something like |
|
|
|
* initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); |
|
|
|
* |
|
|
|
* @param context |
|
|
|
* @param reactInstanceManager |
|
|
|
*/ |
|
|
|
* Loads Flipper in React Native templates. Call this in the onCreate method with something like |
|
|
|
* initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); |
|
|
|
* |
|
|
|
* @param context |
|
|
|
* @param reactInstanceManager |
|
|
|
*/ |
|
|
|
private static void initializeFlipper( |
|
|
|
Context context, ReactInstanceManager reactInstanceManager) { |
|
|
|
if (BuildConfig.DEBUG) { |
|
|
|
try { |
|
|
|
/* |
|
|
|
We use reflection here to pick up the class that initializes Flipper, |
|
|
|
We use reflection here to pick up the class that initializes Flipper, |
|
|
|
since Flipper library is not available in release mode |
|
|
|
*/ |
|
|
|
Class<?> aClass = Class.forName("com.lesspass.android.ReactNativeFlipper"); |
|
|
|