Skip to content

Commit

Permalink
Fixed missing ScrollView
Browse files Browse the repository at this point in the history
  • Loading branch information
BrentpHopkins committed Dec 3, 2022
1 parent 222d4d3 commit fd6472f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Screens/FoodDetails.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React,{useState, useContext} from 'react';
import { View, Text, StyleSheet,Button, TouchableOpacity} from 'react-native';
import { View, Text, StyleSheet,Button, TouchableOpacity, ScrollView} from 'react-native';
import { TextInput } from 'react-native-paper';
import { getNutrientValue, getNutrientUnit } from '../util';
import { DiaryContext } from '../Contexts/DiaryContext';
Expand Down Expand Up @@ -43,7 +43,7 @@ const FoodDetails = ({route}) => {

}
return(
<ScrollView>
<ScrollView style={{ backgroundColor: "#fe7b5f"}}>
<Text style={{ backgroundColor: "#fe7b5f", textAlign:"center", fontWeight:'bold', fontSize:20}}>{food.description}</Text>
<View style={{height:1, backgroundColor:'black'}}></View>
<View style={{backgroundColor: "#fe7b5f",height:'100%',width:'100%'}}>
Expand Down

0 comments on commit fd6472f

Please sign in to comment.