Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. package com.nietzsche;
  2.  
  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.  
  8. public class MainActivity extends ReactActivity {
  9.  
  10. /**
  11. * Returns the name of the main component registered from JavaScript.
  12. * This is used to schedule rendering of the component.
  13. */
  14. @Override
  15. protected String getMainComponentName() {
  16. return "nietzsche";
  17. }
  18.  
  19. @Override
  20. protected ReactActivityDelegate createReactActivityDelegate() {
  21. return new ReactActivityDelegate(this, getMainComponentName()) {
  22. @Override
  23. protected ReactRootView createRootView() {
  24. return new RNGestureHandlerEnabledRootView(MainActivity.this);
  25. }
  26. };
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement