From 030cbfc786a0d0f0bd62105a06e8f60324462c77 Mon Sep 17 00:00:00 2001 From: Arthur Jamet Date: Fri, 28 Apr 2023 13:56:50 +0100 Subject: [PATCH] Front: Navigation: Prevent Back action in home and score view --- front/Navigation.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/Navigation.tsx b/front/Navigation.tsx index 0a0f167..bfffd2f 100644 --- a/front/Navigation.tsx +++ b/front/Navigation.tsx @@ -21,11 +21,11 @@ import { Button, Center, VStack } from 'native-base'; const protectedRoutes = () => ({ - Home: { component: HomeView, options: { title: translate('welcome') } }, + Home: { component: HomeView, options: { title: translate('welcome'), headerLeft: null } }, Settings: { component: SetttingsNavigator, options: { title: 'Settings' } }, Song: { component: SongLobbyView, options: { title: translate('play') } }, Play: { component: PlayView, options: { title: translate('play') } }, - Score: { component: ScoreView, options: { title: translate('score') } }, + Score: { component: ScoreView, options: { title: translate('score'), headerLeft: null } }, Search: { component: SearchView, options: { title: translate('search') } }, User: { component: ProfileView, options: { title: translate('user') } }, }) as const;