-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
102 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,50 @@ | ||
import React, { Component } from 'react'; | ||
import { Button, View, Text } from 'react-native'; | ||
import { Button, View, Text, Image, ScrollView } from 'react-native'; | ||
import {createAppContainer } from "react-navigation"; | ||
import {NavigationContainer} from '@react-navigation/native'; | ||
import {createStackNavigator} from 'react-navigation-stack'; | ||
import {createBottomTabNavigator} from 'react-navigation-tabs'; | ||
|
||
|
||
|
||
export default class Recipe1 extends Component { | ||
state = { | ||
check: false, | ||
} | ||
|
||
handleChange = () => { | ||
console.log("check!") | ||
} | ||
render() { | ||
return ( | ||
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> | ||
<Text>Recipe Screen</Text> | ||
<View style={{ flex: 1, justifyContent: 'top', padding:10 }}> | ||
<Image style={{width: 395, height: 280}} | ||
source={require('../images/recipe1.png')} /> | ||
<Text style={{fontWeight: "bold", textAlign: 'center',fontSize: 18}}>{"\n"}Recipe Name {"\n"}</Text> | ||
|
||
<ScrollView> | ||
<Text style={{fontSize: 14}}>Preparation Time: 20 - 30 Minutes {"\n"} | ||
Dificulty: Beginner {"\n"} | ||
Servings: 2 Portions {"\n"} | ||
</Text> | ||
|
||
<Text style={{fontWeight: "bold", fontSize: 18}}>Ingredients {"\n"}</Text> | ||
|
||
<Text style={{fontSize: 14}}>1 large white onion{"\n"} | ||
2 large handfuls of kale{"\n"} | ||
2 tbsp olive oil{"\n"} | ||
400g floury potatoes, cubed but not peeled{"\n"} | ||
2 tsp mild curry powder{"\n"} | ||
1 tsp ground cumin{"\n"} | ||
½ tsp turmeric{"\n"} | ||
Sea salt and black pepper to taste{"\n"} | ||
</Text> | ||
|
||
|
||
<Text>Do you like React Native?</Text> | ||
|
||
</ScrollView> | ||
</View> | ||
) | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters