aboutsummaryrefslogtreecommitdiff
path: root/src/components/common
diff options
context:
space:
mode:
authorJustin Shillingford <jgs272@cornell.edu>2020-06-30 16:23:24 -0400
committerJustin Shillingford <jgs272@cornell.edu>2020-06-30 16:23:24 -0400
commitb5da6e55ccd4109eb1aa7705540ffb0b4a30a805 (patch)
tree446799875830477a5ad6dbff78ba7126a8eb7e17 /src/components/common
parent81d076c5fae1bedb564d3ec3733431dec848bf56 (diff)
Next button on keyboard works again!
Diffstat (limited to 'src/components/common')
-rw-r--r--src/components/common/LoginInput.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/common/LoginInput.tsx b/src/components/common/LoginInput.tsx
index c82682d7..e4d6b957 100644
--- a/src/components/common/LoginInput.tsx
+++ b/src/components/common/LoginInput.tsx
@@ -50,11 +50,10 @@ const LoginInput = (props: LoginInputProps) => {
blurOnSubmit={
props.isUsername ? false : props.isPassword ? undefined : undefined
}
- // ref={props.isUsername ? undefined : useRef()}
secureTextEntry={
props.isUsername ? false : props.isPassword ? true : false
}
- // ref={props.ref}
+ ref={props.input_ref}
/>
{!props.isValid && (
<Text style={styles.invalidCredentials}>{props.validationWarning}</Text>
@@ -88,7 +87,7 @@ interface LoginInputProps {
isPassword?: boolean;
onChangeText: (input: string) => void;
onSubmitEditing?: () => void;
- // ref?: string;
+ input_ref?: object;
focusPasswordInput?: boolean;
isValid?: boolean;
validationWarning?: string;