Round 3: rewrite in React Native
This commit is contained in:
parent
13d7ebb061
commit
8a74d3e2c9
50 changed files with 19136 additions and 5288 deletions
42
app/src/BottomNavigation.tsx
Normal file
42
app/src/BottomNavigation.tsx
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
import { createMaterialBottomTabNavigator } from "react-native-paper/react-navigation";
|
||||
import MaterialCommunityIcons from "@expo/vector-icons/MaterialCommunityIcons";
|
||||
import { ScreenList, Notifications, Profile } from "./screens";
|
||||
|
||||
const Tab = createMaterialBottomTabNavigator();
|
||||
|
||||
export function BottomNavigation() {
|
||||
return (
|
||||
<Tab.Navigator initialRouteName="Home">
|
||||
<Tab.Screen
|
||||
name="Home"
|
||||
component={ScreenList}
|
||||
options={{
|
||||
tabBarLabel: "Home",
|
||||
tabBarIcon: ({ color }) => (
|
||||
<MaterialCommunityIcons name="home" color={color} size={26} />
|
||||
),
|
||||
}}
|
||||
/>
|
||||
<Tab.Screen
|
||||
name="Notifications"
|
||||
component={Notifications}
|
||||
options={{
|
||||
tabBarLabel: "History",
|
||||
tabBarIcon: ({ color }) => (
|
||||
<MaterialCommunityIcons name="history" color={color} size={26} />
|
||||
),
|
||||
}}
|
||||
/>
|
||||
<Tab.Screen
|
||||
name="Profile"
|
||||
component={Profile}
|
||||
options={{
|
||||
tabBarLabel: "Profile",
|
||||
tabBarIcon: ({ color }) => (
|
||||
<MaterialCommunityIcons name="account" color={color} size={26} />
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</Tab.Navigator>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue