|
@ -24,7 +24,6 @@ import { Shadow } from "react-native-shadow-2"; |
|
|
import SearchablePicker from "../components/SearchablePicker"; |
|
|
import SearchablePicker from "../components/SearchablePicker"; |
|
|
import { states, statesToCities } from "../assets/cities_states"; |
|
|
import { states, statesToCities } from "../assets/cities_states"; |
|
|
import { useFormikContext } from "formik"; |
|
|
import { useFormikContext } from "formik"; |
|
|
import Checkbox from "../components/forms/CheckBox"; |
|
|
|
|
|
import { |
|
|
import { |
|
|
signup, |
|
|
signup, |
|
|
login, |
|
|
login, |
|
@ -341,7 +340,7 @@ export default function RegisterScreen(props) { |
|
|
secQuestion: "", |
|
|
secQuestion: "", |
|
|
secQuestionAns: "", |
|
|
secQuestionAns: "", |
|
|
role: "", |
|
|
role: "", |
|
|
consent: false, |
|
|
|
|
|
|
|
|
consent: true, //ALTERAR P/ FALSE
|
|
|
}} |
|
|
}} |
|
|
onSubmit={(form, actions) => { |
|
|
onSubmit={(form, actions) => { |
|
|
comparePassword(form.password, form.confirmPassword); |
|
|
comparePassword(form.password, form.confirmPassword); |
|
@ -510,10 +509,10 @@ export default function RegisterScreen(props) { |
|
|
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} |
|
|