content: package com.kfpun.audiencenetwork;
  
  import android.app.Application;
  
  import com.facebook.appevents.AppEventsLogger;
  import com.facebook.CallbackManager;
  import com.facebook.FacebookSdk;
  import com.facebook.react.ReactApplication;
  import com.facebook.react.ReactNativeHost;
  import com.facebook.react.ReactPackage;
  import com.facebook.react.shell.MainReactPackage;
  import com.facebook.reactnative.androidsdk.FBSDKPackage;
  import com.facebook.soloader.SoLoader;
  import com.horcrux.svg.SvgPackage;
  import com.oblador.vectoricons.VectorIconsPackage;
  import io.callstack.react.fbads.FBAdsPackage;
  
  import java.util.Arrays;
  import java.util.List;
  
  public class MainApplication extends Application implements ReactApplication {
    private static CallbackManager mCallbackManager = CallbackManager.Factory.create();
  
    protected static CallbackManager getCallbackManager() {
      return mCallbackManager;
    }
  
    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 SvgPackage(),
            new VectorIconsPackage(),
            new FBSDKPackage(mCallbackManager),
            new FBAdsPackage()
        );
      }
    };
  
    @Override
    public ReactNativeHost getReactNativeHost() {
      return mReactNativeHost;
    }
  
    @Override
    public void onCreate() {
      super.onCreate();
      SoLoader.init(this, /* native exopackage */ false);
  
      FacebookSdk.sdkInitialize(getApplicationContext());
      // If you want to use AppEventsLogger to log events.
      AppEventsLogger.activateApp(this);
    }
  }
  