Browse Source

erasing 'Termos de uso' from registration screen - only for testing purposes

master
analuizaff 3 years ago
parent
commit
5e9f74b7c7
  1. 24
      src/app/screens/RegisterScreen.js

24
src/app/screens/RegisterScreen.js

@ -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"

Loading…
Cancel
Save