2.11.2 • Published 3 years ago

react-navigation-tabs v2.11.2

Weekly downloads
112,317
License
MIT
Repository
github
Last release
3 years ago

React Navigation Tabs

Build Status Version MIT License

Tab navigators for React Navigation.

Installation

Follow the instructions on the the React Navigation "Getting Started" guide, and then add the react-navigation-tabs package to your project.

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-tabs';

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',
  },
);

Development workflow

To setup the development environment, open a Terminal in the repo directory and run the following:

yarn bootstrap

While developing, you can run the example app with Expo to test your changes:

yarn example start

Make sure your code passes TypeScript and ESLint. Run the following to verify:

yarn typescript
yarn lint

To fix formatting errors, run the following:

yarn lint --fix

Docs

@invoice-simple/react-navigationsensesocialbricabracbestbet55lenme_component_libraryreact-navigation-fixed-measureinwindow@react-navigation/react-navigation-experimental@infinitebrahmanuniverse/nolb-react-nav@puyodead1/react-native-router-flux@everything-registry/sub-chunk-2600swapnilwable2510willyappvue-native-routershowpareact_native_bottom_and_drawer_menu_examplestorybook-componentsstorybook-comporeact-native-vanillajaytech-rn-uikonakpoket-app-testnabta-nav-barreact-native-material-bottom-tabs-navigationreact-native-redux-kitreact-native-router-flux-nextreact-native-router-flux-v2react-native-router-fluxreact-native-router-flux-5react-native-router-flux-czrreact-native-template-vifereact-native-template-szyxreact-native-template-tcrnreact-native-githubreact-calendar-animationreact-navigation-bottom-tabsreact-navigation-material-bottom-tab-navigatorreact-navigation-sqstatefullapicjslibrarysmcinsurancesmcinsurance-rnsocial-audio-appsmartspace-react-navigationtrack_tk02zaku-nativeyns-rntemplate-appzeninvestzh-react-navigation@fbcmobile/ui@easyapp/rn@heytea/taro-router-rn@freakycoder/react-native-redux-boilerplate@lighthouseapps/react-native-dva@ledvance/eziot-rn-pub@ezviz/ys-rn-pub-mini@mcplabs/mcp-rn-showtime-template@ourdate/react-native-router-flux@tania_tenoreo/zubale-component@react-cross/navigation@varszegik/react-native-skeleton@ugurcode/react-native-router-fluxallmightcollegekonnectbs-react-navigationccl-basedcs-rn-uienntte_app_almacen_aratuboenntte_app_almacen_arestantenntte_app_almacen_ederlantafallaenntte_app_almacen_garnicaenntte_app_almacen_sabaterenntte_app_almacen_symagacreak1477expo-template-tabs-typescriptfeed-back-app
2.11.2

3 years ago

2.11.1

4 years ago

2.11.0

4 years ago

2.10.1

4 years ago

2.10.0

4 years ago

2.9.2

4 years ago

2.9.1

4 years ago

2.9.0

4 years ago

2.8.13

5 years ago

2.8.12

5 years ago

2.8.11

5 years ago

2.8.10

5 years ago

2.8.9

5 years ago

2.8.8

5 years ago

2.8.7

5 years ago

2.8.6

5 years ago

2.8.5

5 years ago

2.8.3

5 years ago

2.8.4

5 years ago

2.8.2

5 years ago

2.8.1

5 years ago

2.8.0

5 years ago

2.7.0

5 years ago

2.6.1

5 years ago

2.6.2

5 years ago

2.6.0

5 years ago

2.5.6

5 years ago

2.5.5

5 years ago

2.5.4

5 years ago

2.5.3

5 years ago

2.5.2

5 years ago

2.5.1

5 years ago

2.5.0

5 years ago

2.4.2

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

1.2.0

5 years ago

1.2.0-alpha.0

5 years ago

2.3.0

5 years ago

2.2.0

6 years ago

2.1.3

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

2.1.2

6 years ago

1.1.2

6 years ago

2.1.1

6 years ago

1.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

2.0.0-alpha.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-alpha.5

6 years ago

1.0.0-alpha.4

6 years ago

1.0.0-alpha.3

6 years ago

1.0.0-alpha.2

6 years ago

1.0.0-alpha.1

6 years ago

0.8.4

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.2.0-rc.0

7 years ago

0.1.0-alpha.8

7 years ago

0.1.0-alpha.7

7 years ago

0.1.0-alpha.6

7 years ago

0.1.0-alpha.5

7 years ago

0.1.0-alpha.4

7 years ago

0.1.0-alpha.3

7 years ago

0.1.0-alpha.2

7 years ago

0.1.0-alpha.1

7 years ago

0.1.0-alpha.0

7 years ago