Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Meterial Top Tab Navigator

$
0
0

In my project, when i am using Material Top Tab 'activeTintColor' is not working in ios. Please help me..Thanks in advance.

import React from 'react'import { View, Text } from 'react-native'import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs'import { Icon } from 'react-native-vector-icons/AntDesign'import { NavigationContainer } from '@react-navigation/native'

const Home = () => { return ( Home! )}

const Profile = () => { return ( Profile! )}const Chat = () => { return ( Chat! )}

const Notification = () => { return ( Notification! )}

const Tab = createMaterialTopTabNavigator();const TopTabNavigatorDemo = () => { return (

<Tab.Screen                name='Home'                component={Home}                options={{ tabBarLabel: 'Home' }} /><Tab.Screen name='Profile' component={Profile} options={{ tabBarLabel: 'Profile' }} /><Tab.Screen name='Chat' component={Chat} options={{ tabBarLabel: 'Chat' }} /><Tab.Screen name='Notification' component={Notification} options={{ tabBarLabel: 'Update' }} /></Tab.Navigator></NavigationContainer>)

}

export default TopTabNavigatorDemo


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>