Guest User

Untitled

a guest
Dec 12th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. package "*****";
  2.  
  3. import android.app.Application;
  4.  
  5. import com.facebook.react.ReactApplication;
  6. import com.facebook.react.ReactNativeHost;
  7. import com.facebook.react.ReactPackage;
  8. import com.facebook.react.shell.MainReactPackage;
  9. import com.facebook.soloader.SoLoader;
  10. import com.gettipsi.stripe.StripeReactPackage;
  11. import com.reactnativenavigation.NavigationApplication;
  12.  
  13. import java.util.Arrays;
  14. import java.util.List;
  15.  
  16. public class MainApplication extends NavigationApplication implements ReactApplication {
  17.  
  18. private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
  19. @Override
  20. public boolean getUseDeveloperSupport() {
  21. return BuildConfig.DEBUG;
  22. }
  23.  
  24. @Override
  25. protected List<ReactPackage> getPackages() {
  26. return Arrays.<ReactPackage>asList(
  27. new MainReactPackage(),
  28. new StripeReactPackage()
  29. );
  30. }
  31.  
  32. @Override
  33. protected String getJSMainModuleName() {
  34. return "index";
  35. }
  36. };
  37.  
  38. @Override
  39. public ReactNativeHost getReactNativeHost() {
  40. return mReactNativeHost;
  41. }
  42.  
  43. @Override
  44. public void onCreate() {
  45. super.onCreate();
  46. SoLoader.init(this, /* native exopackage */ false);
  47. }
  48.  
  49. @Override
  50. public boolean isDebug() {
  51. // Make sure you are using BuildConfig from your own application
  52. return BuildConfig.DEBUG;
  53. }
  54. @Override
  55. public List<ReactPackage> createAdditionalReactPackages() {
  56. return null;
  57. }
  58.  
  59. @Override
  60. public String getJSMainModuleName() {
  61. return "index";
  62. }
  63. }
Add Comment
Please, Sign In to add comment