continue generating flow, add backend connection on main tabs
This commit is contained in:
+13
-3
@@ -1,5 +1,5 @@
|
||||
import { View, Text, Pressable } from "react-native";
|
||||
import React from "react";
|
||||
import React, { useState } from "react";
|
||||
import Page from "../layouts/Page";
|
||||
import { background } from "../assets";
|
||||
import { Palette } from "../styles";
|
||||
@@ -11,6 +11,8 @@ import { Routes } from "../navigation";
|
||||
import ItemContainer from "../components/ItemContainer/ItemContainer";
|
||||
|
||||
const Register = () => {
|
||||
const [email, setEmail] = useState("");
|
||||
|
||||
return (
|
||||
<Page
|
||||
backgroundImg={background.homeBG}
|
||||
@@ -29,14 +31,22 @@ const Register = () => {
|
||||
>
|
||||
Saisis ton adresse mail pour commencer
|
||||
</Text>
|
||||
<Input placeholder="Adresse mail" label="Adresse mail" isBlur />
|
||||
<Input
|
||||
placeholder="Adresse mail"
|
||||
label="Adresse mail"
|
||||
isBlur
|
||||
type="email"
|
||||
value={email}
|
||||
setValue={setEmail}
|
||||
/>
|
||||
<BorderGradientButton
|
||||
title="Créer mon compte"
|
||||
containerStyle={{
|
||||
width: "80%",
|
||||
alignSelf: "center",
|
||||
}}
|
||||
onPress={() => navigate(Routes.CreatePassword)}
|
||||
onPress={() => navigate(Routes.CreatePassword, { email })}
|
||||
disabled={!email}
|
||||
/>
|
||||
<View
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user