import { StatusBar } from 'expo-status-bar' import { View} from 'react-native' import React from 'react'; import stylesScreen from './style/screens.style' import { TopBar } from '../components/TopBar'; import { BotBar } from '../components/BotBar'; import { Conversation } from '../core/conversation'; import { ButtonGameTypeChoice } from '../components/ButtonGameTypeChoice'; import { useSelector } from 'react-redux'; import { RootState } from '../redux/store'; import Stub from '../Services/StubManager/Stub'; //const test= new GameSolo("test", require('bob_party/assets/ImagesJeux/BatailleNavale.jpeg'), "test", ); let tabConv:Conversation[]=[]; let manager=new Stub(); function Home(props: { navigation: any; }) { console.log(manager.managerUser.getUserById("14")); console.log(manager.managerUser.getUserById("0")); const { navigation } = props const currentUser = useSelector((state: RootState) => state.currentUser.value[0]); return ( navigation.navigate('GameChoice')} /> navigation.navigate('GameChoice')} /> ); } export default Home