-
Notifications
You must be signed in to change notification settings - Fork 0
/
onboard.txt
142 lines (126 loc) · 5 KB
/
onboard.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import { Text, View, ScrollView, Image, TouchableOpacity, StyleSheet } from "react-native";
import { useRouter, useNavigate, Link } from 'expo-router';
import Onboarding from 'react-native-onboarding-swiper';
import { StatusBar } from "expo-status-bar";
import { SafeAreaView } from "react-native-safe-area-context";
import FormField from "../components/FormField";
import { useState } from "react";
import CustomButton from "../components/CustomButton";
const onboardImg = require("../assets/images/winner.png")
const supportImg = require("../assets/images/support.png")
const hostImg = require("../assets/images/host.png")
export default function App() {
const [form, setForm] = useState({
name: '',
})
return (
<SafeAreaView>
<View className="w-full h-full px-5">
<Text className="font-bold mt-2 text-2xl">We would love to know a-little about you</Text>
<FormField
title="Tell us about yourself"
placeholder="Full name"
label={form.name}
handleChangeText={(e) => setForm({ ...form, name: e })}
otherStyles="mt-7 font-bold text-gray-500"
keyboardType="email-address"
/>
<Link href="/discover">
Discover
</Link>
<View className="absolute bottom-10 w-full justify-center items-center">
<View className="justify-center items-center">
<CustomButton
title="Continue"
handlePress={() => { }}
containerStyles="mt-7 w-3/4" />
</View>
</View>
</View>
</SafeAreaView>
)
// const router = useRouter();
// const handleDone = () => {
// router.push('/register');
// };
// const doneButton = ({ ...props }) => {
// return (
// <TouchableOpacity className="mr-5" {...props}>
// <Text>Done</Text>
// </TouchableOpacity>
// );
// };
// const StyledNextButton = ({ ...props }) => {
// return (
// <TouchableOpacity className="font-bold text-bgcolor" style={{ marginRight: 22, padding: 10 }} {...props}>
// <Text style={{ color: 'green', fontSize: 16, fontWeight: "bold" }}>Next</Text>
// </TouchableOpacity>
// );
// };
// const SkipButtonComponent = ({ ...props }) => {
// return (
// <TouchableOpacity className="font-bold text-bgcolor" style={{ marginLeft: 22, padding: 10 }} {...props}>
// <Text style={{ color: 'green', fontSize: 16, fontWeight: "bold" }}>Skip</Text>
// </TouchableOpacity>
// );
// };
// return (
// <Onboarding
// onDone={handleDone}
// onSkip={handleDone}
// DoneButtonComponent={doneButton}
// NextButtonComponent={StyledNextButton}
// SkipButtonComponent={SkipButtonComponent}
// containerStyles={{ padding: 5 }}
// pages={[
// {
// backgroundColor: '#fff',
// image: <View className="w-full h-full justify-center items-center px-5">
// <Image source={onboardImg}
// style={{
// width: 400, height: 300,
// resizeMode: "contain"
// }} />
// <StatusBar style="auto" />
// <Text className="mt-5 font-bold text-2xl">Win a Raffle Prize!</Text>
// <Text className="mt-2 text-xl text-center">Unveil the excitement and elevate your experience as
// you stand a chance to win a coveted Raffle Prize!.</Text>
// </View>
// },
// {
// backgroundColor: '#fff',
// image: <View className="w-full h-full justify-center items-center px-5">
// <Image source={supportImg}
// style={{
// width: 400, height: 300,
// resizeMode: "contain"
// }} />
// <StatusBar style="auto" />
// <Text className="mt-5 font-bold text-2xl">Support Raffles</Text>
// <Text className="mt-2 text-xl text-center">Your contribution not only adds excitement to the game but also
// makes a meaningful impact</Text>
// </View>
// },
// {
// backgroundColor: '#fff',
// image: <View className="w-full h-full justify-center items-center px-5">
// <Image source={hostImg}
// style={{
// width: 400, height: 300,
// resizeMode: "contain"
// }} />
// <StatusBar style="auto" />
// <Text className="mt-5 font-bold text-2xl">Host a Raffles</Text>
// <Text className="mt-2 text-xl text-center">Hosting a Raffle has never been this seamless and electrifying your
// gateway to turning moments into memories!</Text>
// <View className="justify-center items-center">
// <TouchableOpacity className="bg-bgcolor px-10 py-2 mt-20 rounded">
// <Text className="text-secondary font-bold text-lg">Get Started</Text>
// </TouchableOpacity>
// </View>
// </View>,
// },
// ]}
// />
// )
}