diff --git a/bob_party/src/navigation/AppNavigator.tsx b/bob_party/src/navigation/AppNavigator.tsx index c3c67a7..1470d38 100644 --- a/bob_party/src/navigation/AppNavigator.tsx +++ b/bob_party/src/navigation/AppNavigator.tsx @@ -7,6 +7,7 @@ import Home from '../screens/Home' import Store from '../screens/Store' import Chat from '../screens/Chat' import Settings from '../screens/Settings' +import Profile from '../screens/Profile' import Test from '../screens/Test' @@ -45,6 +46,17 @@ function ChatStackScreen() { ); } +const ProfileStack = createStackNavigator(); + +function ProfileStackScreen() { + return ( + + + + + ); +} + const Tab = createBottomTabNavigator() function MainTabNavigator() { @@ -58,6 +70,7 @@ function MainTabNavigator() { + diff --git a/bob_party/src/screens/Chat.tsx b/bob_party/src/screens/Chat.tsx index 92a1213..c0cec66 100644 --- a/bob_party/src/screens/Chat.tsx +++ b/bob_party/src/screens/Chat.tsx @@ -13,7 +13,7 @@ function Store(props: { navigation: any; }) { return ( - Alert.alert('Profil Joueur')}> + navigation.navigate('Profile')}> - Alert.alert('Profil Joueur')}> + navigation.navigate('Profile')}> + + + + + BOB PARTY + navigation.navigate('Settings')}> + + + + + couille + + + navigation.navigate('Chat')}> + + + navigation.navigate('Home')}> + + + navigation.navigate('Store')}> + + + + + ); +} + + +function Button(props: { onPress: any; title?: any | undefined; }) { + const { onPress, title = 'Save' } = props; + return ( + + {title} + + ); +} + + +const styles = StyleSheet.create({ + body: { + flex: 1, + flexDirection: 'column', + alignItems: 'flex-start', + width: '70%', + }, + + container: { + flex: 1, + backgroundColor: "#45444E", + flexDirection: "column", + justifyContent: "flex-start", + alignItems: "center", + }, + button: { + alignItems: 'center', + justifyContent: 'center', + height: '30%', + width: '100%', + marginTop: '10%', + paddingVertical: 12, + paddingHorizontal: 32, + borderRadius: 10, + elevation: 3, + backgroundColor: '#0085FF', + }, + text: { + fontSize: 16, + lineHeight: 21, + fontWeight: 'bold', + letterSpacing: 0.25, + color: 'white', + }, + header: { + flex : 0.15, + width: '100%', + flexDirection: 'row', + backgroundColor: '#2D2C33', + alignItems: 'center', + justifyContent: 'space-around', + }, + titre: { + flex: 0.7, + flexDirection: 'column', + textAlign: 'center', + fontSize: 30, + fontFamily: 'Helvetica', + fontWeight: 'bold', + letterSpacing: 0.25, + color: 'white', + }, + engrenage: { + borderRadius: 50, + width: 50, + height: 50, + }, + avatar: { + borderRadius: 50, + width: 50, + height: 50, + }, + + footer: { + flex: 0.15, + flexDirection: 'row', + backgroundColor: '#2D2C33', + flexWrap: 'wrap', + width: '100%', + justifyContent: 'space-evenly', + }, + iconFooter: { + marginBottom: 25, + marginTop: 10, + width: 65, + height: 50, + }, + iconStore: { + marginBottom: 25, + marginTop: 10, + marginLeft: 7, + marginRight: 8, + width: 50, + height: 50, + }, + +}); + +export default Store \ No newline at end of file diff --git a/bob_party/src/screens/Store.tsx b/bob_party/src/screens/Store.tsx index ed1e514..0437fc2 100644 --- a/bob_party/src/screens/Store.tsx +++ b/bob_party/src/screens/Store.tsx @@ -13,7 +13,7 @@ function Store(props: { navigation: any; }) { return ( - Alert.alert('Profil Joueur')}> + navigation.navigate('Profile')}>