daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top