|
@ -346,15 +346,13 @@ export default function RegisterScreen(props) { |
|
|
comparePassword(form.password, form.confirmPassword); |
|
|
comparePassword(form.password, form.confirmPassword); |
|
|
|
|
|
|
|
|
fieldsAreNotInUse(form, actions).then((isNotUsed) => { |
|
|
fieldsAreNotInUse(form, actions).then((isNotUsed) => { |
|
|
isNotUsed |
|
|
|
|
|
? handleSubmit(form) |
|
|
|
|
|
: setShowLog(true) |
|
|
|
|
|
// NOTE: this woud be nice, but does not work...
|
|
|
|
|
|
// : scroll.scrollTo({
|
|
|
|
|
|
// x: 0,
|
|
|
|
|
|
// y: 0,
|
|
|
|
|
|
// animated: true,
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
isNotUsed ? handleSubmit(form) : setShowLog(true); |
|
|
|
|
|
// NOTE: this woud be nice, but does not work...
|
|
|
|
|
|
// : scroll.scrollTo({
|
|
|
|
|
|
// x: 0,
|
|
|
|
|
|
// y: 0,
|
|
|
|
|
|
// animated: true,
|
|
|
|
|
|
// });
|
|
|
}); |
|
|
}); |
|
|
}} |
|
|
}} |
|
|
validationSchema={validationSchema} |
|
|
validationSchema={validationSchema} |
|
@ -502,18 +500,18 @@ export default function RegisterScreen(props) { |
|
|
paddingLeft={2} |
|
|
paddingLeft={2} |
|
|
/> |
|
|
/> |
|
|
</View> |
|
|
</View> |
|
|
<Text style={styles.labelStyle}>Termos de uso*</Text> |
|
|
|
|
|
|
|
|
{/*<Text style={styles.labelStyle}>Termos de uso*</Text> |
|
|
<View |
|
|
<View |
|
|
flexDirection="column" |
|
|
flexDirection="column" |
|
|
alignItems={"flex-start"} |
|
|
alignItems={"flex-start"} |
|
|
marginBottom={24} |
|
|
marginBottom={24} |
|
|
marginTop={12} |
|
|
marginTop={12} |
|
|
> |
|
|
> |
|
|
{ /*<Checkbox |
|
|
|
|
|
|
|
|
<Checkbox |
|
|
name={"consent"} |
|
|
name={"consent"} |
|
|
navigate={() => props.navigation.navigate("UserAgreement")} |
|
|
navigate={() => props.navigation.navigate("UserAgreement")} |
|
|
/>*/} |
|
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
/> |
|
|
|
|
|
</View>*/} |
|
|
<SubmitButton |
|
|
<SubmitButton |
|
|
flex={1} |
|
|
flex={1} |
|
|
title="cadastrar" |
|
|
title="cadastrar" |
|
|