Guest User

Untitled

a guest
Dec 10th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. import com.facebook.react.ReactActivity;
  2. import com.facebook.react.ReactActivityDelegate;
  3. import com.facebook.react.ReactRootView;
  4. import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
  5.  
  6. public class MainActivity extends ReactActivity {
  7.  
  8. /**
  9. * Returns the name of the main component registered from JavaScript.
  10. * This is used to schedule rendering of the component.
  11. */
  12. @Override
  13. protected String getMainComponentName() {
  14. return "InstagramClone";
  15. }
  16.  
  17. @Override
  18. protected ReactActivityDelegate createReactActivityDelegate() {
  19. return new ReactActivityDelegate(this, getMainComponentName()) {
  20. @Override
  21. protected ReactRootView createRootView() {
  22. return new RNGestureHandlerEnabledRootView(MainActivity.this)
  23. }
  24. };
  25. }
  26. }
Add Comment
Please, Sign In to add comment