Archived
- ⬆️ Bump all dependencies - ⬆️ react-native 0.59.x using the the `react-native eject` method - ⬆️ react 16.8.x - ⬆️ react-navigation 3.x - ⬆️ tipsi-stripe 7.x - 📝 Add section on linking native dependencies to README - 🔥 Remove bitrise android build support - 🐛 Add a 10 second timeout to all API requests and stop persisting HTTP request state fixing requests hangs
58 lines
1.6 KiB
Java
58 lines
1.6 KiB
Java
package no.neuf.chateau;
|
|
|
|
import android.app.Application;
|
|
|
|
import com.facebook.react.ReactApplication;
|
|
import com.reactnativecommunity.asyncstorage.AsyncStoragePackage;
|
|
import io.sentry.RNSentryPackage;
|
|
import com.gettipsi.stripe.StripeReactPackage;
|
|
import com.oblador.vectoricons.VectorIconsPackage;
|
|
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage;
|
|
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
|
|
import com.facebook.react.ReactNativeHost;
|
|
import com.facebook.react.ReactPackage;
|
|
import com.facebook.react.shell.MainReactPackage;
|
|
import com.facebook.soloader.SoLoader;
|
|
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
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 AsyncStoragePackage(),
|
|
new RNSentryPackage(),
|
|
new StripeReactPackage(),
|
|
new VectorIconsPackage(),
|
|
new ReactNativeConfigPackage(),
|
|
new RNGestureHandlerPackage()
|
|
);
|
|
}
|
|
|
|
@Override
|
|
protected String getJSMainModuleName() {
|
|
return "index";
|
|
}
|
|
};
|
|
|
|
@Override
|
|
public ReactNativeHost getReactNativeHost() {
|
|
return mReactNativeHost;
|
|
}
|
|
|
|
@Override
|
|
public void onCreate() {
|
|
super.onCreate();
|
|
SoLoader.init(this, /* native exopackage */ false);
|
|
}
|
|
}
|