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.2KB

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