change size of recipe selection
continuous-integration/drone/push Build is passing Details

pull/20/head
Rayhân HASSOU 2 years ago
parent c2cdd44f19
commit 532784deb1

@ -7,7 +7,7 @@ import background from '../assets/images/Background.png';
interface recipeElementReduceProps { interface recipeElementReduceProps {
number : number number : number
title : string title : string
image : string image : string | null
duration : string duration : string
} }

@ -133,7 +133,7 @@ const loadIngredients = async () => {
borderRadius: 15, borderRadius: 15,
}}/> }}/>
</View> </View>
<View style={{flex: 1}}> <View style={{flex: 1, maxHeight: 300}}>
<FlatList <FlatList
data={response ? response : []} data={response ? response : []}
renderItem={({ item }) => ( renderItem={({ item }) => (
@ -153,7 +153,7 @@ const loadIngredients = async () => {
<View style={[styles.horizontalAlignment, {justifyContent: "flex-start", marginLeft: "5%"}]}> <View style={[styles.horizontalAlignment, {justifyContent: "flex-start", marginLeft: "5%"}]}>
<Text style={{fontSize: 20, color: '#ACA279'}}>Available</Text> <Text style={{fontSize: 20, color: '#ACA279'}}>Available</Text>
</View> </View>
<View style={{flex: 1}}> <View style={{flex: 1, maxHeight: 300}}>
<FlatList <FlatList
data={selectedIngredients} data={selectedIngredients}
renderItem={({ item }) => ( renderItem={({ item }) => (

Loading…
Cancel
Save