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 90f28b7 commit 222d4d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Screens/FoodDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const FoodDetails = ({route}) => {

}
return(
<View>
<ScrollView>
<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 Expand Up @@ -89,7 +89,7 @@ const FoodDetails = ({route}) => {
</TouchableOpacity>
</View>
</View>
</View>
</ScrollView>
)
}

Expand Down
2 changes: 1 addition & 1 deletion StackNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Stack = createNativeStackNavigator();
const options = { headerShown: false };
const StackNavigator = () => {
return(
<Stack.Navigator initialRouteName="Loading">
<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Welcome" component={AuthAuth} options={options} />
<Stack.Screen name="Loading" component={Loading} options={options} />
<Stack.Screen name="Home" component={HomeScreen} options={options}/>
Expand Down

0 comments on commit 222d4d3

Please sign in to comment.