-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added PagerView and Loader and Fixed Tab Bar
- Loading branch information
1 parent
b209b63
commit b612a87
Showing
33 changed files
with
892 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,5 @@ | ||
import React, { useState } from 'react'; | ||
import { router } from 'expo-router'; | ||
import { validateEmail } from '@/validations/validateEmail'; | ||
import Background from '@/widgets/Background'; | ||
import BackButton from '@/widgets/BackButton'; | ||
import Logo from '@/widgets/Logo'; | ||
import Header from '@/widgets/Header'; | ||
import TextInput from '@/widgets/TextInput'; | ||
import Button from '@/widgets/Button'; | ||
import Reset from '@/boards/Reset'; | ||
|
||
export default function ResetPasswordScreen() { | ||
const [email, setEmail] = useState({ value: '', error: '' }); | ||
|
||
const sendResetPasswordEmail = () => { | ||
const emailError = validateEmail(email.value); | ||
if (emailError) { | ||
setEmail({ ...email, error: emailError }); | ||
return; | ||
} | ||
router.push('/Login'); | ||
}; | ||
|
||
return ( | ||
<Background> | ||
<BackButton /> | ||
<Logo /> | ||
<Header>Reset your password.</Header> | ||
<TextInput | ||
label='Email' | ||
returnKeyType='done' | ||
value={email.value} | ||
onChangeText={(text) => setEmail({ value: text, error: '' })} | ||
error={!!email.error} | ||
errorText={email.error} | ||
autoCapitalize='none' | ||
autoCompleteType='email' | ||
textContentType='emailAddress' | ||
keyboardType='email-address' | ||
description='You will receive an email with the reset link.' | ||
/> | ||
<Button mode='contained' onPress={sendResetPasswordEmail} style={{ marginTop: 16 }}> | ||
Continue | ||
</Button> | ||
</Background> | ||
); | ||
export default function Reset_Route() { | ||
return <Reset /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,5 @@ | ||
import executeAuth from "@/events/executeAuth"; | ||
import Background from "@/widgets/Background"; | ||
import Button from "@/widgets/Button"; | ||
import Header from "@/widgets/Header"; | ||
import Logo from "@/widgets/Logo"; | ||
import Paragraph from "@/widgets/Paragraph"; | ||
import Snackbar from "@/widgets/Snackbar"; | ||
import { useState } from "react"; | ||
import Home from '@/boards/Home'; | ||
|
||
import { bottom } from "bottoms"; | ||
import { router } from "expo-router"; | ||
|
||
import SomeComponent from "@/components/SomeComponent"; | ||
|
||
export default function Home() { | ||
|
||
const [error, setError] = useState('') | ||
|
||
const { executeLogout } = executeAuth(); | ||
|
||
const logout = async () => { | ||
try { | ||
await executeLogout() | ||
} catch (error : any ){ | ||
setError(error.message) | ||
} | ||
} | ||
|
||
const openModal = () => { | ||
bottom.open('Two'); | ||
} | ||
const openModal2 = () => { | ||
bottom.open('Two'); | ||
} | ||
const data = { | ||
'1':'293' | ||
} | ||
|
||
return ( | ||
<Background> | ||
{/* <Logo /> */} | ||
<Header>Home</Header> | ||
<Paragraph>Expo Router Test</Paragraph> | ||
<Paragraph> router.push('/(modal)/Modal') </Paragraph> | ||
<Button mode='contained' onPress={() => { | ||
router.setParams(data) | ||
router.push(`/(main)/post/id`)}}> | ||
To Modal | ||
</Button> | ||
<Paragraph>Navigate to Modal Directly </Paragraph> | ||
<Paragraph> router.push('/(modal)/Modal') </Paragraph> | ||
<SomeComponent /> | ||
{/* | ||
<Button mode='contained' onPress={openModal}> | ||
Bottom Sheet One | ||
</Button> | ||
<Button mode='contained' onPress={openModal2}> | ||
Bottom Sheet Two | ||
</Button> | ||
<Button style={{}} mode='outlined' onPress={logout}> | ||
Sign out | ||
</Button> | ||
<Snackbar snackbarText={error} visible={error.length > 0} /> */} | ||
</Background> | ||
); | ||
export default function Home_Route() { | ||
return <Home /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import ExampleTiktok from '@/boards/ExampleTiktok'; | ||
|
||
export default function Home_Route() { | ||
return <ExampleTiktok />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Settings from "@/boards/Settings"; | ||
|
||
export default function Settings_Route() { | ||
return <Settings/> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import Logo from '@/widgets/Logo' | ||
import { View } from 'react-native' | ||
import { Text } from 'react-native-paper' | ||
import { FacebookLoader, InstagramLoader } from 'react-native-easy-content-loader'; | ||
|
||
export default function Splash() { | ||
return ( | ||
<View style={{ flex:1, justifyContent: 'center', alignItems:'center'}}> | ||
{/* <Logo /> */} | ||
<Text>Splash</Text> | ||
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> | ||
<Logo /> | ||
{/* <FacebookLoader active /> */} | ||
</View> | ||
) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.