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
import React from 'react';
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import AnimatedTabBar from '@gorhom/animated-tabbar';
import Notification from '../screens/NotificationScreen/NotificationScreen';
import Chat from '../screens/ChatScreen/ChatScreen';
import Home from '../screens/HomeScreen/HomeScreen';
import Booking from '../screens/BookingScreen/BookingScreen';
import Profile from '../screens/ProfileScreen/ProfileScreen';
import colours from '../assets/colors';
import IconGenerator from '../components/IconGenerator';
import {appFonts} from '../assets/scale';
Bug
Here is my src code
import React from 'react';
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import AnimatedTabBar from '@gorhom/animated-tabbar';
import Notification from '../screens/NotificationScreen/NotificationScreen';
import Chat from '../screens/ChatScreen/ChatScreen';
import Home from '../screens/HomeScreen/HomeScreen';
import Booking from '../screens/BookingScreen/BookingScreen';
import Profile from '../screens/ProfileScreen/ProfileScreen';
import colours from '../assets/colors';
import IconGenerator from '../components/IconGenerator';
import {appFonts} from '../assets/scale';
const Tabs = createBottomTabNavigator();
const iconProperty = iconName => ({
labelStyle: {
color: colours.primary,
fontFamily: appFonts.regularText.fontFamily,
},
icon: {
component: () => (
),
inactiveColor: colours.primary,
activeColor: colours.primary,
},
background: {
activeColor: 'rgba(0, 191, 166, 0.18)',
inactiveColor: 'rgba(223,215,243,0)',
},
});
const tabs = {
Notification: iconProperty('Notification'),
Chat: iconProperty('Chat'),
Home: iconProperty('Home'),
Bookings: iconProperty('Bookings'),
Profile: iconProperty('Profile'),
};
const TabScreens = () => (
<Tabs.Navigator
tabBar={props => <AnimatedTabBar tabs={tabs} {...props} />}
initialRouteName="Home"
tabBarOptions={{
style: {
backgroundColor: colours.background,
},
}}>
<Tabs.Screen name="Notification" component={Notification} />
<Tabs.Screen name="Chat" component={Chat} />
<Tabs.Screen name="Home" component={Home} />
<Tabs.Screen name="Booking" component={Booking} />
<Tabs.Screen name="Profile" component={Profile} />
</Tabs.Navigator>
);
export default TabScreens;
Environment info
Please i need help!!
The text was updated successfully, but these errors were encountered: