diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/common/LoginInput.tsx | 4 | ||||
-rw-r--r-- | src/screens/Login.tsx | 19 |
2 files changed, 10 insertions, 13 deletions
diff --git a/src/components/common/LoginInput.tsx b/src/components/common/LoginInput.tsx index ca33db92..55d2e662 100644 --- a/src/components/common/LoginInput.tsx +++ b/src/components/common/LoginInput.tsx @@ -26,7 +26,7 @@ const LoginInput = (props: LoginInputProps) => { blurOnSubmit={props.isUsername ? false : undefined} // ref={props.isUsername ? undefined : useRef()} secureTextEntry={props.isUsername ? false : true} - focus={props.isUsername ? undefined : props.focusPasswordInput} + // focus={props.isUsername ? undefined : props.focusPasswordInput} /> ); }; @@ -51,7 +51,7 @@ LoginInput.propTypes = { isUsername: PropTypes.bool.isRequired, onChangeText: PropTypes.func.isRequired, onSubmitEditing: PropTypes.func, - ref: PropTypes.any, +// ref: PropTypes.any, focusPasswordInput: PropTypes.bool, }; diff --git a/src/screens/Login.tsx b/src/screens/Login.tsx index 2b4a10dc..e7778f1d 100644 --- a/src/screens/Login.tsx +++ b/src/screens/Login.tsx @@ -87,11 +87,15 @@ const Login = ({navigation}: LoginProps) => { } }; + /* + Handler for the submit button on the Username keyboard + */ const handleUsernameSubmit = () => { - setData({ - ...data, - focusPasswordInput: true, - }); + // setData({ + // ...data, + // focusPasswordInput: true, + // }); + Alert.alert("Coming soon 🚧") }; return ( @@ -164,13 +168,6 @@ const Login = ({navigation}: LoginProps) => { </LinearGradient> </View> </> - // <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> - // <Text style={{fontSize: 18}}>Welcome to Tagg! Login page goes here.</Text> - // <Button - // title="Register" - // onPress={() => navigation.navigate('Registration')} - // /> - // </View> ); }; |