Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create custom bottom tab navigator in React native

Hello guys I want to create stylish and custom bottom tab navigation in react native can anyone have any idea how to create this mention in above

enter image description here

like image 741
vaibhav gadekar Avatar asked Dec 12 '19 12:12

vaibhav gadekar


People also ask

How do you customize the bottom tab navigator in react native?

Add icons to the tab bar To add icons to each tab, first import the Icon component from react-native-vector-icons library inside the navigation/TabNavigator/index. js file. For this example, let's use AntDesign based icons. // after other import statements import Icon from 'react-native-vector-icons/AntDesign';

How do I create a bottom tab in react native?

To create a Bottom Tab Navigator using Material, we need to use the createMaterialBottomTabNavigator function available in the react-navigation library. It is designed with the material theme tab bar on the bottom of the screen.

How do I create a custom tab in react native?

Navigate to your header. js file and add the following lines of code. import React from "react"; import { View, Text, StyleSheet } from "react-native"; const Header = props => { return ( <View style={styles. containerHeader}> <View style={styles.


1 Answers

In React Navigation V5, there is a prop for Tab.Navigator component which you can pass whole custom bottom bar component

<Tab.Navigator tabBar={(props) => <CustomTabBar/>}>
    <Tab.Screen .../>
</Tab.Navigator>
like image 91
Masoud Alali Avatar answered Sep 21 '22 15:09

Masoud Alali