-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from atlp-rwanda/ch-project-structure
Chore (setup project structure. Worked on colors, constants, and icons)
- Loading branch information
Showing
41 changed files
with
1,144 additions
and
190 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
interface Props {} | ||
|
||
export default function HomeScreen({}: Props) { | ||
return <></>; | ||
} |
Empty file.
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,11 @@ | ||
import { Text, View } from "@/components/Themed"; | ||
import { LeftArrow } from "@/components/UI/icons"; | ||
import { SvgUri, SvgXml } from "react-native-svg"; | ||
|
||
export default function SetYourFingerPrint() { | ||
return ( | ||
<> | ||
<Text>Set Your Finger Print</Text> | ||
</> | ||
); | ||
} |
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,17 @@ | ||
import Header from "@/components/UI/Header"; | ||
import { Stack } from "expo-router"; | ||
|
||
export default function AuthLayout() { | ||
return ( | ||
<Stack initialRouteName="SignIn&SignOut/SetYourFingerPrint"> | ||
<Stack.Screen | ||
name="SignIn&SignOut/SetYourFingerPrint" | ||
options={{ | ||
header: () => { | ||
return <Header />; | ||
}, | ||
}} | ||
/> | ||
</Stack> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
import { Text, View, StyleSheet} from "react-native"; | ||
import { router } from "expo-router"; | ||
import { useEffect } from "react"; | ||
|
||
export default function Index() { | ||
// useEffect(() => { | ||
// setTimeout(() => { | ||
// router.push("/(auth)/SignIn&SignOut/SetYourFingerPrint"); | ||
// }, 2000); | ||
// }); | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<Text>Onboarding Screen</Text> | ||
</View> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
alignItems: "center", | ||
justifyContent: "center", | ||
}, | ||
}) |
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,52 @@ | ||
import React from "react"; | ||
import FontAwesome from "@expo/vector-icons/FontAwesome"; | ||
import { Link, Stack } from "expo-router"; | ||
import { Pressable } from "react-native"; | ||
|
||
|
||
// You can explore the built-in icon families and icons on the web at https://icons.expo.fyi/ | ||
function TabBarIcon(props: { | ||
name: React.ComponentProps<typeof FontAwesome>["name"]; | ||
color: string; | ||
}) { | ||
return <FontAwesome size={28} style={{ marginBottom: -3 }} {...props} />; | ||
} | ||
|
||
export default function TabLayout() { | ||
|
||
return ( | ||
<Stack> | ||
<Stack.Screen | ||
name="OnBoardingScrollScreen" | ||
options={{ | ||
title: "onBoarding page", | ||
headerShown: false, | ||
}} | ||
/> | ||
|
||
<Stack.Screen | ||
name="FirstScreen" | ||
options={{ | ||
title: "onBoarding page", | ||
headerShown: false, | ||
}} | ||
/> | ||
|
||
<Stack.Screen | ||
name="SecondScreen" | ||
options={{ | ||
title: "onBoarding page", | ||
headerShown: false, | ||
}} | ||
/> | ||
|
||
<Stack.Screen | ||
name="ThirdScreen" | ||
options={{ | ||
title: "onBoarding page", | ||
headerShown: false, | ||
}} | ||
/> | ||
</Stack> | ||
); | ||
} |
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,46 @@ | ||
import React, {useState} from 'react' | ||
import { StyleSheet, Text, View } from 'react-native' | ||
import { Colors } from '@/constants/Colors' | ||
import OnboardingComponent from '@/components/OnBoarding/OnboardingComponent'; | ||
|
||
const image = require("../../../assets/images/OnBoardingImages/firstLightImg.png") | ||
const darkImg = require("../../../assets/images/OnBoardingImages/firstDarkImg.png") | ||
|
||
const firstScreen = () => { | ||
const [isDark , setIsDark] = useState(false) | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<OnboardingComponent | ||
image={isDark ? darkImg : image} | ||
text="Thousands of doctors & experts to help your health!" | ||
action="Next" | ||
direction="/onBoarding/SecondScreen" | ||
> | ||
<Text style={[styles.dots, {width: 30, backgroundColor: Colors.main.primary._500}]}></Text> | ||
<Text style={styles.dots}></Text> | ||
<Text style={styles.dots}></Text> | ||
</OnboardingComponent> | ||
|
||
</View> | ||
|
||
) | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
|
||
container: { | ||
flex: 1, | ||
alignItems: "center", | ||
}, | ||
|
||
dots: { | ||
width: 10, | ||
height: 10, | ||
backgroundColor: "grey", | ||
borderRadius: 100, | ||
marginHorizontal: 3 | ||
}, | ||
}) | ||
|
||
export default firstScreen |
Oops, something went wrong.