Application Android et IOS pour l'amicale des élèves https://play.google.com/store/apps/details?id=fr.amicaleinsat.application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MainActivity.java 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package fr.amicaleinsat.application;
  2. import android.os.Bundle;
  3. import com.facebook.react.ReactActivity;
  4. import com.facebook.react.ReactActivityDelegate;
  5. import com.facebook.react.ReactRootView;
  6. import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
  7. import android.content.Intent;
  8. import android.content.res.Configuration;
  9. import org.devio.rn.splashscreen.SplashScreen;
  10. public class MainActivity extends ReactActivity {
  11. // Added automatically by Expo Config
  12. @Override
  13. public void onConfigurationChanged(Configuration newConfig) {
  14. super.onConfigurationChanged(newConfig);
  15. Intent intent = new Intent("onConfigurationChanged");
  16. intent.putExtra("newConfig", newConfig);
  17. sendBroadcast(intent);
  18. }
  19. @Override
  20. protected void onCreate(Bundle savedInstanceState) {
  21. SplashScreen.show(this);
  22. super.onCreate(savedInstanceState);
  23. }
  24. /**
  25. * Returns the name of the main component registered from JavaScript.
  26. * This is used to schedule rendering of the component.
  27. */
  28. @Override
  29. protected String getMainComponentName() {
  30. return "Campus";
  31. }
  32. @Override
  33. protected ReactActivityDelegate createReactActivityDelegate() {
  34. return new ReactActivityDelegate(this, getMainComponentName()) {
  35. @Override
  36. protected ReactRootView createRootView() {
  37. return new RNGestureHandlerEnabledRootView(MainActivity.this);
  38. }
  39. };
  40. }
  41. }