Round 3: rewrite in React Native

This commit is contained in:
Niklas Korz 2024-01-01 19:50:01 +01:00
parent 13d7ebb061
commit 8a74d3e2c9
50 changed files with 19136 additions and 5288 deletions

View 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>
);
}