diff --git a/app/containers/Registration/Registration.js b/app/containers/Registration/Registration.js index 08b543d..63e4e87 100644 --- a/app/containers/Registration/Registration.js +++ b/app/containers/Registration/Registration.js @@ -8,9 +8,10 @@ import { TextInput, } from "react-native"; import InputScrollView from "react-native-input-scroll-view"; - import { Button } from "native-base"; +import { Formik } from "formik"; import colors from "../../assets/colors/colors"; +import { registrationSchema } from "../../helper/validation"; export default function Registration({ navigation }) { return ( @@ -21,6 +22,7 @@ export default function Registration({ navigation }) { style={styles.header_shape} /> + {/**end of header shape */} + {/**end of text */} {/** Add Text input */} - - - - - - - + {(props) => ( + <> + + + {props.touched.name && props.errors.name} + + + + {props.touched.email && props.errors.email} + + + + + {props.touched.password && props.errors.password} + + + + + {props.touched.confirmPassword && props.errors.confirmPassword} + + + + + )} + Already have an account ?{" "} + {/**end of input and register button */} ); } @@ -114,8 +162,9 @@ const styles = StyleSheet.create({ fontFamily: "Poppins-Medium", fontSize: 18, paddingLeft: 15, - marginBottom: 15, + marginTop: 10, }, + warning_text: { color: "crimson", fontFamily: "Poppins-Bold" }, button: { backgroundColor: colors.background_secondary, width: "95%",