Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Tab bar for Android like TabBarIOS in react native? [closed]

Tags:

react-native

I want to create a BottomTabBar for my app. I have used TabBarIOS component for the same and it works perfectly on iOS. Is there any component for the Android as well?

I have checked react-native-tabs but it doesn't support images I guess and the badge icon for notification.

Any ideas?

like image 200
Rohit Goyal Avatar asked Apr 11 '16 12:04

Rohit Goyal


People also ask

How do you style the tab bar 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 change tabs in react native?

In order to change current tab index in React Native Navigation, you need to do merge options for bottomTabs option: Navigation. mergeOptions(this. props.

How do you make a top tab navigator in react native?

To create a Top Tab Navigator, we need to use the createMaterialTopTabNavigator function available in the react-navigation library. It is designed with the material theme tab bar on the top of the screen. It allows switching between various tabs by tapping them or swiping horizontally.


1 Answers

I guess this plugin will serve your purpose:

https://github.com/brentvatne/react-native-scrollable-tab-view

like image 64
Mohammad Umair Khan Avatar answered Oct 28 '22 18:10

Mohammad Umair Khan