7.2.14 • Published 5 months ago

@react-navigation/material-top-tabs v7.2.14

Weekly downloads
48,589
License
MIT
Repository
github
Last release
5 months ago

@react-navigation/material-top-tabs

React Navigation integration for animated tab view component from react-native-tab-view.

Installation

Open a Terminal in your project's folder and run,

yarn add @react-navigation/core @react-navigation/material-top-tabs react-native-tab-view

Now we need to install react-native-gesture-handler and react-native-reanimated.

If you are using Expo, to ensure that you get the compatible versions of the libraries, run:

expo install react-native-gesture-handler react-native-reanimated

If you are not using Expo, run the following:

yarn add react-native-reanimated react-native-gesture-handler

If you are using Expo, you are done. Otherwise, continue to the next steps.

Next, we need to link these libraries. The steps depends on your React Native version:

  • React Native 0.60 and higher

    On newer versions of React Native, linking is automatic.

    To complete the linking on iOS, make sure you have Cocoapods installed. Then run:

    cd ios
    pod install
    cd ..
  • React Native 0.59

    If you're on an older React Native version, you need to manually link the dependencies. To do that, run:

    react-native link react-native-reanimated
    react-native link react-native-gesture-handler

IMPORTANT: There are additional steps required for react-native-gesture-handler on Android after linking (for all React Native versions). Check the this guide to complete the installation.

Usage

import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';

const MaterialTopTabs = createMaterialTopTabNavigator();

export default function App() {
  return (
    <MaterialTopTabs.Navigator>
      <MaterialTopTabs.Screen
        name="article"
        component={Article}
        options={{ tabBarLabel: 'Article' }}
      />
      <MaterialTopTabs.Screen
        name="chat"
        component={Chat}
        options={{ tabBarLabel: 'Chat' }}
      />
      <MaterialTopTabs.Screen
        name="contacts"
        component={Contacts}
        options={{ tabBarLabel: 'Contacts' }}
      />
    </MaterialTopTabs.Navigator>
  );
}
slashbracket-custom-expo-bare-templatehotqa-sdkairasia1222jitsi-meet-rnreact-native-jitsi-meet-libki-smart-base-rn@infinitebrahmanuniverse/nolb-_react-n@everything-registry/sub-chunk-766dsaas-react-native-demo@snapbot-app/examples@snapbot-app/time-rulerwl-ui-componentstoner-design-systemstablex-sdkbp-native-templateseverest-native-shelljitsi-meet-stepupjitsi-fmtechipanel-rnapp-ajb-coreipanel-rntv-corelikeminds_chat_reactnative_integration_betaklarify-ui-components@typeskill/debuggerabc123efghsosappyes-frameworknative-solidmz-mobile-ui-kitownhimreact-native-jitsi-meet-sdk-fmtechreact-native-liveplayerreact-native-sdk-betareact-native-nanorn-navigation-templatesrnshellreact-native-msb-travelreact-native-matirial-ui-v2react-native-sdk-deltareact-native-sdk-stepupreact-native-sdk-v2react-native-sdk-fmtechreact-native-sdk-metareact-native-sdk-portkeyreact-native-vnlink-sdkquytemplaterne-atrntyped-firebase-templatereact-native-template-expo-basic@fadyshawky/react-native-magic@intra-mart/smartlime-ui@functionland/component-library@functionland/fx-components@portkey/react-native-sdk@steroidsjs/nativeep-native-templatesexpo-router-v3-top-tabsexpo-custom-navigationexpo-appfindme-forms@aakatrov/jitsi-react-native-sdk@bitalikrty/jitsi-meet-react-native-sdk@bluebase/components@bluebase/plugin-react-navigation@chunghieu/react-native-msb-travel@bacons/expo-router-top-tabschat-rn-core-betacode-vortexcreate-rn-redux-toolkit-boilerplatecreate-themed-react-native-appbluekobutce-asistanim@snapbox/mapp-examples@snapbox/mapp-green-energy-reaper@snapbox/mapp-led-danmaku@snapbox/mapp-little-days@snapbox/mapp-qrcode-generator@snapbox/mapp-scanner@jabz/react-library-template@jabz/react-native-expo-core-system@mainamiru/expo-app-with-navigation@mcplabs/mcp-rn-showtime-template@kafudev/react-native-core@nareshj7/expo-router-v3-top-tabs@jitsi/react-native-sdk@renkiari/e8-react-native-sdk@reactseals/renative-template-chat@rndm/render-plugin-react-navigation@selene-wallet/app@scsoft-react-native/jitsi-sdk
7.0.12

12 months ago

7.0.13

12 months ago

7.0.10

12 months ago

7.0.11

12 months ago

7.0.18

11 months ago

7.0.16

11 months ago

7.0.17

11 months ago

7.0.14

11 months ago

7.0.15

11 months ago

7.0.8

12 months ago

7.0.7

12 months ago

7.0.6

12 months ago

7.0.5

12 months ago

7.0.9

12 months ago

7.2.13

6 months ago

7.2.12

6 months ago

7.2.14

5 months ago

7.2.11

6 months ago

7.2.10

7 months ago

7.0.0

1 year ago

7.0.4

12 months ago

7.0.3

12 months ago

7.0.2

12 months ago

7.0.1

1 year ago

7.1.1

8 months ago

7.1.0

11 months ago

7.2.6

7 months ago

7.2.5

7 months ago

7.2.4

7 months ago

7.2.3

8 months ago

7.2.9

7 months ago

7.2.8

7 months ago

7.2.7

7 months ago

7.2.2

8 months ago

7.2.1

8 months ago

7.2.0

8 months ago

7.0.0-rc.28

1 year ago

7.0.0-rc.27

1 year ago

7.0.0-rc.26

1 year ago

7.0.0-rc.25

1 year ago

7.0.0-rc.24

1 year ago

6.6.14

1 year ago

7.0.0-rc.8

1 year ago

7.0.0-rc.7

1 year ago

7.0.0-rc.9

1 year ago

7.0.0-rc.4

1 year ago

7.0.0-rc.3

1 year ago

7.0.0-rc.6

1 year ago

7.0.0-rc.5

1 year ago

7.0.0-rc.0

1 year ago

7.0.0-rc.2

1 year ago

7.0.0-rc.1

1 year ago

7.0.0-rc.23

1 year ago

7.0.0-rc.22

1 year ago

7.0.0-rc.21

1 year ago

7.0.0-rc.20

1 year ago

7.0.0-rc.19

1 year ago

7.0.0-rc.18

1 year ago

7.0.0-rc.17

1 year ago

7.0.0-rc.16

1 year ago

7.0.0-rc.15

1 year ago

7.0.0-rc.14

1 year ago

7.0.0-rc.13

1 year ago

7.0.0-rc.12

1 year ago

7.0.0-rc.11

1 year ago

7.0.0-rc.10

1 year ago

7.0.0-alpha.19

2 years ago

7.0.0-alpha.18

2 years ago

7.0.0-alpha.17

2 years ago

7.0.0-alpha.16

2 years ago

6.6.13

2 years ago

7.0.0-alpha.15

2 years ago

6.6.12

2 years ago

7.0.0-alpha.14

2 years ago

7.0.0-alpha.13

2 years ago

6.6.11

2 years ago

7.0.0-alpha.12

2 years ago

7.0.0-alpha.11

2 years ago

6.6.9

2 years ago

6.6.10

2 years ago

7.0.0-alpha.9

2 years ago

7.0.0-alpha.8

2 years ago

6.6.7

2 years ago

6.6.8

2 years ago

7.0.0-alpha.10

2 years ago

6.6.6

2 years ago

7.0.0-alpha.7

2 years ago

7.0.0-alpha.6

2 years ago

7.0.0-alpha.3

2 years ago

7.0.0-alpha.5

2 years ago

7.0.0-alpha.4

2 years ago

6.6.5

2 years ago

6.6.4

2 years ago

7.0.0-alpha.2

2 years ago

6.6.3

2 years ago

7.0.0-alpha.1

3 years ago

6.6.2

3 years ago

7.0.0-alpha.0

3 years ago

6.6.1

3 years ago

6.6.0

3 years ago

6.5.3

3 years ago

6.5.0

3 years ago

6.3.0

3 years ago

6.3.1

3 years ago

6.4.0

3 years ago

6.5.2

3 years ago

6.5.1

3 years ago

6.2.4

3 years ago

6.2.3

3 years ago

6.2.2

3 years ago

6.2.1

4 years ago

6.2.0

4 years ago

6.1.0

4 years ago

6.1.1

4 years ago

6.0.6

4 years ago

6.0.5

4 years ago

6.0.3

4 years ago

6.0.4

4 years ago

5.3.19

4 years ago

5.3.18

4 years ago

6.0.2

4 years ago

6.0.1

4 years ago

5.3.17

4 years ago

6.0.0

4 years ago

6.0.0-next.18

4 years ago

6.0.0-next.17

4 years ago

6.0.0-next.16

4 years ago

6.0.0-next.14

4 years ago

6.0.0-next.13

4 years ago

6.0.0-next.12

4 years ago

6.0.0-next.11

4 years ago

6.0.0-next.10

4 years ago

6.0.0-next.8

5 years ago

6.0.0-next.9

4 years ago

6.0.0-next.4

5 years ago

6.0.0-next.5

5 years ago

6.0.0-next.6

5 years ago

6.0.0-next.7

5 years ago

6.0.0-next.2

5 years ago

6.0.0-next.3

5 years ago

5.3.15

5 years ago

6.0.0-next.0

5 years ago

6.0.0-next.1

5 years ago

5.3.14

5 years ago

5.3.13

5 years ago

5.3.12

5 years ago

5.3.11

5 years ago

5.3.10

5 years ago

5.3.9

5 years ago

5.3.8

5 years ago

5.3.7

5 years ago

5.3.6

5 years ago

5.3.5

5 years ago

5.3.3

5 years ago

5.3.4

5 years ago

5.3.2

5 years ago

5.3.1

5 years ago

5.3.0

5 years ago

5.2.19

5 years ago

5.2.18

5 years ago

5.2.17

5 years ago

5.2.16

5 years ago

5.2.15

5 years ago

5.2.14

5 years ago

5.2.13

5 years ago

5.2.12

5 years ago

5.2.11

5 years ago

5.2.10

5 years ago

5.2.9

5 years ago

5.2.8

5 years ago

5.2.7

5 years ago

5.2.6

5 years ago

5.2.5

5 years ago

5.2.4

5 years ago

5.2.3

5 years ago

5.2.2

6 years ago

5.2.1

6 years ago

5.2.0

6 years ago

5.1.15

6 years ago

5.1.14

6 years ago

5.1.13

6 years ago

5.1.12

6 years ago

5.1.11

6 years ago

5.0.0-web.2

6 years ago

5.0.0-web.1

6 years ago

5.0.0-web.0

6 years ago

5.1.10

6 years ago

5.1.9

6 years ago

5.1.8

6 years ago

5.1.7

6 years ago

5.1.6

6 years ago

5.1.5

6 years ago

5.1.4

6 years ago

5.1.3

6 years ago

5.1.2

6 years ago

5.1.1

6 years ago

5.1.0

6 years ago

5.0.7

6 years ago

5.0.6

6 years ago

5.0.5

6 years ago

5.0.4

6 years ago

5.0.3

6 years ago

5.0.2

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

5.0.0-alpha.40

6 years ago

5.0.0-alpha.41

6 years ago

5.0.0-alpha.39

6 years ago

5.0.0-alpha.37

6 years ago

5.0.0-alpha.38

6 years ago

5.0.0-alpha.35

6 years ago

5.0.0-alpha.34

6 years ago

5.0.0-alpha.33

6 years ago

5.0.0-alpha.31

6 years ago

5.0.0-alpha.32

6 years ago

5.0.0-alpha.30

6 years ago

5.0.0-alpha.29

6 years ago

5.0.0-alpha.27

6 years ago

5.0.0-alpha.26

6 years ago

5.0.0-alpha.25

6 years ago

5.0.0-alpha.24

6 years ago

5.0.0-alpha.23

6 years ago

5.0.0-alpha.22

6 years ago

5.0.0-alpha.21

6 years ago

5.0.0-alpha.20

6 years ago

5.0.0-alpha.19

6 years ago

5.0.0-alpha.18

6 years ago

5.0.0-alpha.17

6 years ago

5.0.0-alpha.16

6 years ago

5.0.0-alpha.15

6 years ago

5.0.0-alpha.14

6 years ago

5.0.0-alpha.13

6 years ago

5.0.0-alpha.12

6 years ago

5.0.0-alpha.11

6 years ago

5.0.0-alpha.10

6 years ago

5.0.0-alpha.9

6 years ago

5.0.0-alpha.8

6 years ago

5.0.0-alpha.7

6 years ago

5.0.0-alpha.6

6 years ago

5.0.0-alpha.5

6 years ago

5.0.0-alpha.4

6 years ago

5.0.0-alpha.3

6 years ago

5.0.0-alpha.2

6 years ago

5.0.0-alpha.1

6 years ago

5.0.0-alpha.0

6 years ago