You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i want to make active opacity to zero when navigating from one to another screen in create Material Top Tab Navigator. i dont known how to achieve this. i used activeopacity={0} and also known we can disable opacity but from where ? thanks for helping
this is my code
import React from 'react';
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
import RecentNotifcation from '../Screens/RecentNotifcation';
import AllNotification from '../Screens/AllNotification';
import { COLORS } from '../Theme/theme';
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
i want to make active opacity to zero when navigating from one to another screen in create Material Top Tab Navigator. i dont known how to achieve this. i used activeopacity={0} and also known we can disable opacity but from where ? thanks for helping
this is my code
import React from 'react';
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
import RecentNotifcation from '../Screens/RecentNotifcation';
import AllNotification from '../Screens/AllNotification';
import { COLORS } from '../Theme/theme';
const Tab = createMaterialTopTabNavigator();
export default function TopTab() {
return (
<Tab.Navigator screenOptions={{
tabBarActiveTintColor:"white",
tabBarLabelStyle: {
textTransform: "capitalize",
},
tabBarInactiveTintColor: "#616161",
tabBarIndicatorStyle: {
height: null,
top: '10%',
bottom: '10%',
borderRadius: 10,
backgroundColor: COLORS.headerColor,
},
tabBarStyle: {
alignSelf: "center",
width: '100%',
borderRadius: 10,
backgroundColor: COLORS.pageBg,
elevation: 5, // shadow on Android
}}
<Tab.Screen name="All Notification" component={AllNotification} />
<Tab.Screen name="Recent Notifcation" component={RecentNotifcation} />
</Tab.Navigator>
);}
Beta Was this translation helpful? Give feedback.
All reactions