|
|
@ -346,15 +346,13 @@ export default function RegisterScreen(props) { |
|
|
|
comparePassword(form.password, form.confirmPassword); |
|
|
|
|
|
|
|
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} |
|
|
@ -502,18 +500,18 @@ export default function RegisterScreen(props) { |
|
|
|
paddingLeft={2} |
|
|
|
/> |
|
|
|
</View> |
|
|
|
<Text style={styles.labelStyle}>Termos de uso*</Text> |
|
|
|
{/*<Text style={styles.labelStyle}>Termos de uso*</Text> |
|
|
|
<View |
|
|
|
flexDirection="column" |
|
|
|
alignItems={"flex-start"} |
|
|
|
marginBottom={24} |
|
|
|
marginTop={12} |
|
|
|
> |
|
|
|
{ /*<Checkbox |
|
|
|
<Checkbox |
|
|
|
name={"consent"} |
|
|
|
navigate={() => props.navigation.navigate("UserAgreement")} |
|
|
|
/>*/} |
|
|
|
</View> |
|
|
|
/> |
|
|
|
</View>*/} |
|
|
|
<SubmitButton |
|
|
|
flex={1} |
|
|
|
title="cadastrar" |
|
|
|