From 5b4295407e42cb02c8d6da4269f9902b603410e9 Mon Sep 17 00:00:00 2001 From: Justin Shillingford Date: Fri, 26 Jun 2020 15:20:53 -0400 Subject: Added accessibility features Also standardized prop ordering --- App.tsx | 116 ++++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 69 insertions(+), 47 deletions(-) diff --git a/App.tsx b/App.tsx index 242ca47c..68f325ca 100644 --- a/App.tsx +++ b/App.tsx @@ -45,41 +45,63 @@ const App = () => { barStyle='light-content' /> - - - {passwordInput.current.focus()}} - blurOnSubmit={false} - autoCompleteType='username' - textContentType='username' - keyboardType='ascii-capable' - /> - - Alert.alert("tagg! You're it!")} accessibilityLabel="Forgot password button"> - Forgot password - - Alert.alert("My favorite Girl Scout Cookies are taggalongs!")}> - Let's Start! - - - New to tagg? Alert.alert("I get the tagg flip it and tumble it.")}>Get started! - + + + {passwordInput.current.focus()}} + blurOnSubmit={false} + /> + Alert.alert("My favorite Girl Scout Cookies are taggalongs!")} + ref={passwordInput} + secureTextEntry={true} + /> + Alert.alert("tagg! You're it!")}> + Forgot password + + Alert.alert("My favorite Girl Scout Cookies are taggalongs!")}> + Let's Start! + + + New to tagg? Alert.alert("I get the tagg flip it and tumble it.")}>Get started! + @@ -89,7 +111,7 @@ const App = () => { const styles = StyleSheet.create({ container: { flex: 1, - backgroundColor: 'transparent' + backgroundColor: 'transparent', }, linearGradient: { flex: 1, @@ -98,50 +120,50 @@ const styles = StyleSheet.create({ logo: { top: 165, width: 215, - height: 149 + height: 149, }, credentials: { top: 215, + width: 248, + height: 40, + fontSize: 20, + color: '#FFFFFF', borderColor: '#FFFDFD', borderWidth: 2, borderRadius: 20, - width: 248, - height: 40, paddingLeft: 13, marginVertical: 15, - fontSize: 15, - color: '#FFFFFF' }, forgotPassword: { - top: 205, - left: -45, + top: 215, + left: -60, }, forgotPasswordText: { + fontSize: 15, color: '#FFFFFF', textDecorationLine: 'underline', - fontSize: 20 }, start: { top: 220, - backgroundColor: '#FFFFFF', width: 144, height: 36, justifyContent: 'center', alignItems: 'center', + backgroundColor: '#FFFFFF', borderRadius: 20, marginTop: 15 }, startText: { + fontSize: 15, color: '#78A0EF', fontWeight: 'bold', - fontSize: 15 }, getStarted: { color: '#FFFFFF', textDecorationLine: 'underline' }, newUser: { - top: 230, + top: 235, color: '#F4DDFF', } }); -- cgit v1.2.3-70-g09d2