import { StatusBar } from 'expo-status-bar' import { View, Text, Image} from 'react-native' import React from 'react'; import stylesScreen from './style/screens.style' import styles from './style/Profile.style' import { TopBar } from '../components/TopBar'; import { BotBar } from '../components/BotBar'; import { SkinComponent } from '../components/Skin'; import { ButtonGreySmall } from '../components/ButtonGreySmall'; import { ScreenIndicator } from '../components/ScreenIndicator'; import { useSelector } from 'react-redux'; import { RootState } from '../redux/store'; const coin = require('../../assets/Icons/Coin.png') function Profile(props: { navigation: any; }) { const { navigation } = props const currentUser = useSelector((state: RootState) => state.currentUserManager.currentUser); return ( {currentUser.getUsername()} {currentUser.getCurrentCoins()} navigation.navigate('SkinList')} title='Changer de skin' state='Profile'/> Total de BobCoin gagnés: {currentUser.getTotalCoins()} ); } export default Profile