2022-09-16 20:06:52 +00:00
|
|
|
import { View, TouchableOpacity, Text } from 'react-native';
|
|
|
|
import { NavigationContainer } from '@react-navigation/native';
|
|
|
|
import { useSession } from './useSession.hook';
|
|
|
|
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
|
2022-09-12 22:18:27 +00:00
|
|
|
|
2022-09-07 07:32:06 +00:00
|
|
|
export function Session() {
|
2022-09-12 22:18:27 +00:00
|
|
|
|
2022-09-16 20:06:52 +00:00
|
|
|
const { state, actions } = useSession();
|
|
|
|
|
|
|
|
const Tab = createBottomTabNavigator();
|
|
|
|
|
|
|
|
const Home = () => (<TouchableOpacity style={{ width: '100%', height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center' }} onPress={actions.logout}><Text>LOGOUT</Text></TouchableOpacity>);
|
|
|
|
|
|
|
|
const Settings = () => (<Text>SETTINGS</Text>);
|
2022-09-12 22:18:27 +00:00
|
|
|
|
|
|
|
return (
|
2022-09-16 20:06:52 +00:00
|
|
|
<NavigationContainer>
|
|
|
|
<Tab.Navigator>
|
|
|
|
<Tab.Screen name="Home" component={Home} />
|
|
|
|
<Tab.Screen name="Settings" component={Settings} />
|
|
|
|
</Tab.Navigator>
|
|
|
|
</NavigationContainer>
|
2022-09-12 22:18:27 +00:00
|
|
|
);
|
2022-09-07 07:32:06 +00:00
|
|
|
}
|
|
|
|
|
2022-09-16 20:06:52 +00:00
|
|
|
|