-
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.
- Loading branch information
1 parent
f1eb5ba
commit 8148d33
Showing
4 changed files
with
176 additions
and
88 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { StyleSheet, Text, View } from 'react-native'; | ||
import React from 'react'; | ||
|
||
export default function Avoiding() { | ||
return ( | ||
<View> | ||
<Text>Avaoiding</Text> | ||
</View> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({}); |
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,21 +1,97 @@ | ||
import { StyleSheet, Text, View } from 'react-native'; | ||
import { Image, Pressable, StyleSheet, Text, View } from 'react-native'; | ||
import React from 'react'; | ||
import Slider from '@react-native-community/slider'; | ||
|
||
export default function HowHungry() { | ||
export default function HowHungry({ navigation }) { | ||
return ( | ||
<View> | ||
<Slider | ||
style={{ width: 200, height: 40 }} | ||
minimumValue={0} | ||
maximumValue={1} | ||
vertical='true' | ||
disabled='true' | ||
minimumTrackTintColor='#FFFFFF' | ||
maximumTrackTintColor='#000000' | ||
/> | ||
<Text style={styles.text}>How hungry are{'\n'}you?</Text> | ||
<Image style={styles.img} source={require('../assets/slider.png')} /> | ||
<Text style={styles.text1}>Very hungry</Text> | ||
<Text style={styles.text2}>Not very hungry</Text> | ||
<Text style={styles.text3}>Not hungry</Text> | ||
<View style={styles.button}> | ||
<Pressable onPress={() => navigation.navigate('Avoiding')}> | ||
<Text style={styles.btn_text}>Continue</Text> | ||
</Pressable> | ||
</View> | ||
</View> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({}); | ||
const styles = StyleSheet.create({ | ||
text1: { | ||
position: 'absolute', | ||
width: 119, | ||
height: 26, | ||
left: 159, | ||
top: 214, | ||
fontStyle: 'normal', | ||
fontWeight: '800', | ||
fontSize: 22, | ||
lineHeight: 26, | ||
letterSpacing: -0.03, | ||
color: '#DA0091', | ||
}, | ||
|
||
text2: { | ||
position: 'absolute', | ||
width: 122, | ||
height: 20, | ||
left: 159, | ||
top: 353, | ||
fontStyle: 'normal', | ||
fontWeight: '700', | ||
fontSize: 17, | ||
lineHeight: 20, | ||
letterSpacing: -0.03, | ||
color: '#DA0091', | ||
}, | ||
|
||
text3: { | ||
position: 'absolute', | ||
width: 69, | ||
height: 17, | ||
left: 159, | ||
top: 500, | ||
fontStyle: 'normal', | ||
fontWeight: '500', | ||
fontSize: 14, | ||
lineHeight: 17, | ||
letterSpacing: -0.03, | ||
color: '#DA0091', | ||
}, | ||
img: { position: 'absolute', left: 80, top: 210 }, | ||
|
||
text: { | ||
color: '#4D0033', | ||
position: 'absolute', | ||
width: 273, | ||
height: 64, | ||
left: 60, | ||
top: 45, | ||
fontfamily: 'Clash', | ||
fontStyle: 'normal', | ||
fontWeight: '600', | ||
fontSize: 28, | ||
lineHeight: 40, | ||
textAlign: 'center', | ||
color: '#4D0033', | ||
}, | ||
button: { | ||
display: 'flex', | ||
flexDirection: 'row', | ||
justifyContent: 'center', | ||
alignitems: 'center', | ||
paddingTop: 20, | ||
paddingBottom: 0, | ||
gap: 8, | ||
position: 'absolute', | ||
width: 329, | ||
height: 62, | ||
left: 32, | ||
top: 600, | ||
color: 'white', | ||
backgroundColor: '#B9B9B9', | ||
borderRadius: 89, | ||
}, | ||
}); |