diff options
author | Justin Shillingford <jgs272@cornell.edu> | 2020-06-26 13:58:43 -0400 |
---|---|---|
committer | Justin Shillingford <jgs272@cornell.edu> | 2020-06-29 14:25:38 -0400 |
commit | 37b30e55b33300b34a3f474fcd89db8468000745 (patch) | |
tree | c50eb6e68387cccfc986f2788601263aa96bcc81 | |
parent | 607b3cc19468d8b8e00ee7263adb75f8f152467e (diff) |
Converted buttons to TouchableOpacity
Helps with styling later, also updated StatusBar color
-rw-r--r-- | App.tsx | 27 |
1 files changed, 16 insertions, 11 deletions
@@ -41,6 +41,9 @@ const App = () => { return ( <> + <StatusBar + barStyle='light-content' + /> <View style={styles.container}> <LinearGradient colors={['#8F00FF', '#6EE7E7']} style={styles.linearGradient} useAngle={true} angle={154.72} angleCenter={{x:0.5,y:0.5}}> <Image @@ -68,14 +71,9 @@ const App = () => { textContentType='password' returnKeyType='go' /> - <View style={styles.forgotPassword}> - <Button - onPress={() => Alert.alert("tagg! You're it!")} - title="Forgot password" - color='#FFFFFF' - accessibilityLabel="Forgot password button" - /> - </View> + <TouchableOpacity style={styles.forgotPassword} onPress={() => Alert.alert("tagg! You're it!")} accessibilityLabel="Forgot password button"> + <Text style={styles.forgotPasswordText}>Forgot password</Text> + </TouchableOpacity> <TouchableOpacity style={styles.start} onPress={() => Alert.alert("My favorite Girl Scout Cookies are taggalongs!")}> <Text style={styles.startText}>Let's Start!</Text> </TouchableOpacity> @@ -115,8 +113,13 @@ const styles = StyleSheet.create({ color: '#FFFFFF' }, forgotPassword: { - top: 200, - left: -50 + top: 205, + left: -45, + }, + forgotPasswordText: { + color: '#FFFFFF', + textDecorationLine: 'underline', + fontSize: 20 }, start: { top: 220, @@ -125,7 +128,8 @@ const styles = StyleSheet.create({ height: 36, justifyContent: 'center', alignItems: 'center', - borderRadius: 20 + borderRadius: 20, + marginTop: 15 }, startText: { color: '#78A0EF', @@ -134,6 +138,7 @@ const styles = StyleSheet.create({ }, getStarted: { color: '#FFFFFF', + textDecorationLine: 'underline' }, newUser: { top: 230, |