NotificationsTab
This commit is contained in:
16
App.js
16
App.js
@@ -8,6 +8,8 @@ import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
||||
import Login from "./Views/Login.js"
|
||||
import Feed from "./Views/Feed.js"
|
||||
import Profile from "./Views/Profile.js"
|
||||
import Notifications from './Views/Notifications.js';
|
||||
import SinglePost from './Views/SinglePost.js'
|
||||
|
||||
|
||||
const Tab = createMaterialBottomTabNavigator();
|
||||
@@ -45,7 +47,18 @@ const MainNavigation = () => {
|
||||
},
|
||||
})}
|
||||
/>
|
||||
|
||||
<Tab.Screen
|
||||
name="Notifications"
|
||||
component={Notifications}
|
||||
options={{
|
||||
tabBarLabel: 'Notifications',
|
||||
tabBarIcon: ({ color }) => (
|
||||
<MaterialIcons name="notifications" color={color} size={26} />
|
||||
),
|
||||
tabBarBadge: false
|
||||
}}
|
||||
/>
|
||||
|
||||
<Tab.Screen name="Logout" component={Login} />
|
||||
</Tab.Navigator>
|
||||
)
|
||||
@@ -70,6 +83,7 @@ export default function App() {
|
||||
tabBarLabel: 'Profile'
|
||||
}}
|
||||
/>
|
||||
<Stack.Screen name="SinglePost" component={SinglePost} />
|
||||
</Stack.Navigator>
|
||||
</NavigationContainer>
|
||||
</PaperProvider>
|
||||
|
||||
Reference in New Issue
Block a user