Skip to content

A cross-platform Tab View component for React Native based on react-native-tab-view with easier syntax

License

Notifications You must be signed in to change notification settings

chr314/react-native-tab-view-easy

Repository files navigation

react-native-tab-view-easy

A cross-platform Tab View component for React Native based on react-native-tab-view with easier syntax

Installation

yarn add react-native-tab-view-easy

OR

npm install react-native-tab-view-easy

Now we need to install react-native-tab-view and react-native-pager-view

yarn add react-native-tab-view react-native-pager-view

OR

npm install react-native-tab-view react-native-pager-view

Usage

import { TabView, Tab } from 'react-native-tab-view-easy';

// ...

<TabView>
  <Tab title={'Tab 1'}>
    <Text>Content</Text>
  </Tab>

  <Tab title={'Tab 2'}>
    <Text>Content</Text>
  </Tab>
</TabView>

License

MIT