Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draft sign up #278

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions apps/native/app/SignUp.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
import React, { useState } from "react";
import { ThemedView } from "@/components/ThemedView";
import { ThemedText } from "@/components/ThemedText";
import { Button } from "@/components/Button";
import { StyleSheet, TextInput, View } from "react-native";
import { SafeAreaView, SafeAreaProvider } from "react-native-safe-area-context";
import { Text } from "react-native";

const SignUp = () => {
const [name, setName] = useState("");
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");

const Submit = () => {
//signup
};

const GmailSubmit = () => {
//signup with gmail
};

const FacebookSubmit = () => {
//signup with facebook
};

const GithubSubmit = () => {
//signup with github
};

return (
<SafeAreaProvider>
<SafeAreaView>
<Text>Sign Up</Text>
<TextInput
style={styles.input}
value={name}
onChange={e => setName}
placeholder="Name"></TextInput>
<TextInput
style={styles.input}
value={email}
onChange={e => setEmail}
placeholder="Email"></TextInput>
<TextInput
style={styles.input}
value={password}
onChange={e => setPassword}
secureTextEntry={true}
placeholder="Password"></TextInput>
<TextInput
style={styles.input}
value="Password"
secureTextEntry={true}
placeholder="Confirm Password"></TextInput>
<Button onPress={Submit} title="SIGN UP"></Button>

<Text>or</Text>

<View style={altSignup.input}>
<Button onPress={GmailSubmit} title="SIGN UP WITH GMAIL"></Button>
</View>

<View style={altSignup.input}>
<Button
onPress={FacebookSubmit}
title="SIGN UP WITH FACEBOOK"></Button>
</View>

<View style={altSignup.input}>
<Button onPress={GithubSubmit} title="SIGN UP WITH GITHUB"></Button>
</View>
<Text>Have an accout? Log in</Text>
<Text>
By continuing I agree to Greenstand's Privacy Policy and Terms of Use
</Text>
</SafeAreaView>
</SafeAreaProvider>
);
};

const styles = StyleSheet.create({
input: {},
});

const altSignup = StyleSheet.create({
input: {},
});

export default SignUp;