diff --git a/commit_and_push.sh b/commit_and_push.sh new file mode 100755 index 0000000..554786f --- /dev/null +++ b/commit_and_push.sh @@ -0,0 +1,7 @@ +git add * + +read -p "Commit message: " commit_message + +git commit -m "$commit_message" + +git push -u origin main \ No newline at end of file diff --git a/src/navigation/navigation.tsx b/src/navigation/navigation.tsx index 38039e4..05dc47e 100644 --- a/src/navigation/navigation.tsx +++ b/src/navigation/navigation.tsx @@ -69,6 +69,8 @@ function ChatsTabAnim(props: any) { ); } +const tabBarIcons = ['account-circle', 'calendar-month', 'map', 'chat']; + function CustomTabBar(props: BottomTabBarProps) { const {state, descriptors, navigation} = props; @@ -110,8 +112,7 @@ function CustomTabBar(props: BottomTabBarProps) { }); }; - console.log('isFocused', isFocused); - + // TODO: retrieve colors from theme const gradientColors = isFocused ? ['#931278', '#6030da'] : ['#26263f', '#26263f']; @@ -120,26 +121,14 @@ function CustomTabBar(props: BottomTabBarProps) { @@ -148,18 +137,20 @@ function CustomTabBar(props: BottomTabBarProps) { start={{x: 0, y: 1}} end={{x: 1, y: 0}} style={{ - padding: 10, + paddingTop: 4, + paddingBottom: 4, borderRadius: 20, width: '100%', alignItems: 'center', - //marginRight: state.routes.length - 1 !== index ? 4 : 0, }}> - - {label} - + + {isFocused && ( + {label.toString()} + )} ); @@ -173,42 +164,10 @@ function HomeStack() { } screenOptions={{headerShown: false, unmountOnBlur: false}}> - ( - - ), - }} - /> - ( - - ), - }} - /> - ( - - ), - }} - /> - ( - - ), - }} - /> + + + + ); }