rameshvishnoi90904 / react-native-tab-view-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-tab-view-example

React Native TabView Example using react-native-tab-view

git clone https://github.com/rameshvishnoi90904/react-native-tab-view-example.git

##step 1

npm install / yarn install

##step 2: for ios build

cd ios
pod install
cd ..

##step 3: Update MainActivity.java

package com.swmansion.gesturehandler.react.example;

import com.facebook.react.ReactActivity;
+ import com.facebook.react.ReactActivityDelegate;
+ import com.facebook.react.ReactRootView;
+ import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;

public class MainActivity extends ReactActivity {

  @Override
  protected String getMainComponentName() {
    return "Example";
  }

+  @Override
+  protected ReactActivityDelegate createReactActivityDelegate() {
+    return new ReactActivityDelegate(this, getMainComponentName()) {
+      @Override
+      protected ReactRootView createRootView() {
+       return new RNGestureHandlerEnabledRootView(MainActivity.this);
+      }
+    };
+  }
}

#Screenshot
![screenshot](https://raw.githubusercontent.com/rameshvishnoi90904/react-native-tab-view-example/master/demo/demo.png)

About


Languages

Language:JavaScript 44.5%Language:Objective-C 21.3%Language:Ruby 12.2%Language:Java 12.2%Language:Python 9.9%