Files
react-navigation/packages/tabs
2018-08-02 12:08:12 -07:00
..
2018-03-17 18:37:54 +01:00
2018-03-17 18:37:54 +01:00
2018-03-17 18:37:54 +01:00
2018-05-24 14:46:23 +02:00
2018-08-02 12:07:58 -07:00
2018-03-17 18:37:54 +01:00
2018-03-17 18:37:54 +01:00
2018-03-17 18:37:54 +01:00
2018-03-17 18:37:54 +01:00
2018-03-17 18:37:54 +01:00
2018-03-17 18:37:54 +01:00
2018-08-02 12:08:12 -07:00
2018-06-05 14:32:09 +02:00

React Navigation Tabs

Build Status Version MIT License

Tab navigators for React Navigation.

Installation

With react-navigation@^2.0.0, no installation is required.

Usage

The package exports two different navigators:

  • createBottomTabNavigator: iOS like bottom tabs.
  • createMaterialTopTabNavigator: Material design themed top tabs with swipe gesture, from react-native-tab-view.

You can import individual navigators and use them:

import { createBottomTabNavigator } from 'react-navigation';

export default createBottomTabNavigator({
  Album: { screen: Album },
  Library: { screen: Library },
  History: { screen: History },
  Cart: { screen: Cart },
});

You can install another package, react-navigation-material-bottom-tabs, to use a third type of tab navigator:

  • createMaterialBottomTabNavigator: Material design themed animated bottom tabs, from react-native-paper.
import { createMaterialBottomTabNavigator } from 'react-navigation-material-bottom-tabs';

export default createMaterialBottomTabNavigator({
  Album: { screen: Album },
  Library: { screen: Library },
  History: { screen: History },
  Cart: { screen: Cart },
}, {
  initialRouteName: 'Album',
  activeTintColor: '#F44336',
});