From 2dd42e3f97cfcbef20683c8de7529c95863654a6 Mon Sep 17 00:00:00 2001 From: balzack Date: Tue, 27 Sep 2022 22:57:30 -0700 Subject: [PATCH] styling screen header --- app/mobile/src/session/Session.jsx | 10 +++++----- app/mobile/src/session/profile/Profile.styled.js | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/mobile/src/session/Session.jsx b/app/mobile/src/session/Session.jsx index 603952d6..83c3b37f 100644 --- a/app/mobile/src/session/Session.jsx +++ b/app/mobile/src/session/Session.jsx @@ -71,11 +71,11 @@ export function Session() { const channels = useChannels(); return ( - ({ headerShown: true })}> + ({ headerShown: true, headerTintColor: Colors.primary })}> { console.log(props); return } + headerTitle: (props) => }}> {(props) => setConversation(props.navigation, cardId, channelId)} />} @@ -96,7 +96,7 @@ export function Session() { } const ProfileStackScreen = () => { return ( - ({ headerShown: true })}> + ({ headerShown: true, headerTintColor: Colors.primary })}> }} /> ); @@ -121,11 +121,11 @@ export function Session() { const cards = useCards(); return ( - ({ headerShow: true })}> + ({ headerShow: true, headerTintColor: Colors.primary })}> { console.log(props); return } + headerTitle: (props) => }}> {(props) => setCardStack(props.navigation, contact)} />} diff --git a/app/mobile/src/session/profile/Profile.styled.js b/app/mobile/src/session/profile/Profile.styled.js index 50de4be6..0815427d 100644 --- a/app/mobile/src/session/profile/Profile.styled.js +++ b/app/mobile/src/session/profile/Profile.styled.js @@ -24,6 +24,8 @@ export const styles = StyleSheet.create({ flex: 1, width: '100%', textAlign: 'start', + alignItems: 'center', + justifyContent: 'center', }, body: { paddingTop: 16,