From b9ee49ed570d7a66cee21334dca6a3694dbc6e3d Mon Sep 17 00:00:00 2001 From: Med Kamel Date: Wed, 16 Apr 2025 04:29:03 +0100 Subject: [PATCH] user registration and login --- app/index.tsx | 4 +- app/screens/auth/SignUpScreen.tsx | 420 ++++++++++++++++++++++++++++-- firebase/config.ts | 3 + 3 files changed, 400 insertions(+), 27 deletions(-) diff --git a/app/index.tsx b/app/index.tsx index 2e47a1a..6e68ea0 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -10,9 +10,9 @@ const OpeningScreen = () => { return ( - + Bienvenue chez Brix Café - + Depuis 2024, Brix Café vous fait vivre une expérience café unique, inspirée du savoir-faire italien et portée par une passion authentique. diff --git a/app/screens/auth/SignUpScreen.tsx b/app/screens/auth/SignUpScreen.tsx index 50678b9..8a418df 100644 --- a/app/screens/auth/SignUpScreen.tsx +++ b/app/screens/auth/SignUpScreen.tsx @@ -1,35 +1,405 @@ -import React from 'react'; -import { View, Text,StyleSheet, Button } from 'react-native'; -import { router } from 'expo-router'; +import React, { useState } from 'react'; +import {View,Text,TextInput,TouchableOpacity,ScrollView,StyleSheet,SafeAreaView,Image,Pressable,} from 'react-native'; +import { StatusBar } from 'expo-status-bar'; +import { ArrowLeft, Eye, EyeOff, Coffee, MapPin } from 'lucide-react-native'; +import { doc, setDoc } from 'firebase/firestore'; +import { db } from '../../../firebase/config'; +import { signUp } from '../../../firebase/auth'; +import { Alert } from 'react-native'; +import { router } from "expo-router"; -const SignUpScreen = () => { - return ( - - Sign up Screen -