package com.growth;

import android.app.Application;

import com.cboy.rn.splashscreen.SplashScreenReactPackage;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.learnium.RNDeviceInfo.RNDeviceInfo;
import com.oblador.vectoricons.VectorIconsPackage;
import com.react.rnspinkit.RNSpinkitPackage;

import java.util.Arrays;
import java.util.List;

import cl.json.RNSharePackage;

public class MainApplication extends Application implements ReactApplication {

  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
    @Override
    public boolean getUseDeveloperSupport() {
      return BuildConfig.DEBUG;
    }

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
            new SplashScreenReactPackage(),
            new RNSharePackage(),
            new RNDeviceInfo(),
            new RNSpinkitPackage(),
            new VectorIconsPackage()
      );
    }
  };

  @Override
  public ReactNativeHost getReactNativeHost() {
    return mReactNativeHost;
  }

  @Override
  public void onCreate() {
    super.onCreate();
    SoLoader.init(this, /* native exopackage */ false);
  }
}

@@ -45,16 +45,90 @@
 ication;
+%0Aimport android.content.Context;%0Aimport android.content.SharedPreferences;
 %0A%0Aimport
@@ -219,24 +219,173 @@
 pplication;%0A
+import com.growth.util.AppUtil;%0Aimport com.growth.util.FileUtils;%0Aimport com.rnfs.RNFSPackage;%0Aimport com.benwixen.rnfilesystem.RNFileSystemPackage;%0A
 import com.f
@@ -688,16 +688,37 @@
 ckage;%0A%0A
+import java.io.File;%0A
 import j
@@ -1179,32 +1179,102 @@
 ReactPackage(),%0A
+            new RNFSPackage(),%0A            new RNFileSystemPackage(),%0A
             new 
@@ -1616,16 +1616,16 @@
 eate();%0A
-
     SoLo
@@ -1672,14 +1672,87 @@
 false);%0A
+    FileUtils.copyGrowthContent2externalSdcard(getApplicationContext());%0A
   %7D%0A%7D%0A

copy static file of gorwth content