From e4ee99747c0c535879a3e68157776f73c3f5fe78 Mon Sep 17 00:00:00 2001 From: Louison PARANT Date: Wed, 22 Nov 2023 15:33:03 +0100 Subject: [PATCH] Update CreateProfile Page --- LeftOvers/App.tsx | 10 +++++----- LeftOvers/screens/CreateProfile.tsx | 13 +++++++------ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/LeftOvers/App.tsx b/LeftOvers/App.tsx index b45a76e..fb00fc6 100644 --- a/LeftOvers/App.tsx +++ b/LeftOvers/App.tsx @@ -1,21 +1,21 @@ import React from 'react'; import {StyleSheet, View, SafeAreaView, ScrollView, Text} from 'react-native'; import HomePage from './screens/HomePage'; -import ModifyProfile from './screens/ModifyProfile'; import Profiles from './screens/Profiles'; -import RecipeSuggestion from './screens/RecipeSuggestion'; +import ModifyProfile from './screens/ModifyProfile'; import CreateProfile from './screens/CreateProfile'; import FiltersSelection from './screens/FiltersSelection'; +import RecipeSuggestion from './screens/RecipeSuggestion'; import {SafeAreaProvider} from 'react-native-safe-area-context'; import {LinearGradient} from 'expo-linear-gradient'; export default function App(props) { return( // + // // - - // - // + // + // ); } \ No newline at end of file diff --git a/LeftOvers/screens/CreateProfile.tsx b/LeftOvers/screens/CreateProfile.tsx index 697b5e5..864cd33 100644 --- a/LeftOvers/screens/CreateProfile.tsx +++ b/LeftOvers/screens/CreateProfile.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import {StyleSheet, View, ScrollView} from 'react-native'; +import {StyleSheet, View, ScrollView, useWindowDimensions} from 'react-native'; import ProfileModification from '../components/ProfileModification'; import ValidateButton from '../components/ValidateButton'; import TopBar from '../components/TopBar'; @@ -11,13 +11,14 @@ export default function CreateProfile(props) { const die = [{value: "Dairy free"}, {value: "Gluten free"}, {value: "Porkless"}, {value: "Vegan"}, {value: "Vegetarian"}, {value: "Pescatarian"}] return ( + - - - + + - + + @@ -37,7 +38,7 @@ const styles = StyleSheet.create({ height: "100%", width: "100%", flex: 1, - padding: 10, + padding: "2%", paddingTop: 0, }, }); \ No newline at end of file