From 34b512e331c668f8df220ca0724ae68f9982e5f2 Mon Sep 17 00:00:00 2001 From: Aruneko Date: Wed, 16 Feb 2022 16:36:41 +0900 Subject: [PATCH 01/33] define blank login and sign up screens --- src/screens/loginScreen/index.tsx | 10 ++++++++++ src/screens/signUpScreen/index.tsx | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/screens/loginScreen/index.tsx create mode 100644 src/screens/signUpScreen/index.tsx diff --git a/src/screens/loginScreen/index.tsx b/src/screens/loginScreen/index.tsx new file mode 100644 index 0000000..e771aa5 --- /dev/null +++ b/src/screens/loginScreen/index.tsx @@ -0,0 +1,10 @@ +import React from 'react' +import { Text, View } from 'react-native' + +export const LoginScreen: React.VFC = () => { + return ( + + Login Screen + + ) +} diff --git a/src/screens/signUpScreen/index.tsx b/src/screens/signUpScreen/index.tsx new file mode 100644 index 0000000..b1b3245 --- /dev/null +++ b/src/screens/signUpScreen/index.tsx @@ -0,0 +1,10 @@ +import React from 'react' +import { Text, View } from 'react-native' + +export const SignUpScreen: React.VFC = () => { + return ( + + Sign Up Screen + + ) +} From 3c5b65760fa9825c3be5939166241ced9ca928a0 Mon Sep 17 00:00:00 2001 From: Aruneko Date: Wed, 16 Feb 2022 16:37:23 +0900 Subject: [PATCH 02/33] define new navigation props --- .../mainStackNavigation/navigationProps.ts | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/screens/mainStackNavigation/navigationProps.ts b/src/screens/mainStackNavigation/navigationProps.ts index 2975d12..6ba5627 100644 --- a/src/screens/mainStackNavigation/navigationProps.ts +++ b/src/screens/mainStackNavigation/navigationProps.ts @@ -1,3 +1,19 @@ -export type MainStackNavigationProps = { - mainScreen: undefined +import { NativeStackNavigationProp } from '@react-navigation/native-stack' + +export type MainStackParamList = { + MainScreen: undefined + OnboardingScreen: undefined + LoginScreen: undefined + SignUpScreen: undefined + HomeScreen: undefined } + +export type LoginScreenNavigationProp = NativeStackNavigationProp< + MainStackParamList, + 'LoginScreen' +> + +export type SignUpScreenNavigationProp = NativeStackNavigationProp< + MainStackParamList, + 'SignUpScreen' +> From 5a37c104ba8da09f1be0b1e2d2f110b0c3dc6384 Mon Sep 17 00:00:00 2001 From: Aruneko Date: Wed, 16 Feb 2022 16:37:34 +0900 Subject: [PATCH 03/33] define home screen --- src/screens/homeScreen/index.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/screens/homeScreen/index.tsx diff --git a/src/screens/homeScreen/index.tsx b/src/screens/homeScreen/index.tsx new file mode 100644 index 0000000..af90a4b --- /dev/null +++ b/src/screens/homeScreen/index.tsx @@ -0,0 +1,10 @@ +import React from 'react' +import { Text, View } from 'react-native' + +export const HomeScreen: React.VFC = () => { + return ( + + Home Screen + + ) +} From a9efb4bab696324e179bbab2081c190d3a53c423 Mon Sep 17 00:00:00 2001 From: Aruneko Date: Wed, 16 Feb 2022 16:37:59 +0900 Subject: [PATCH 04/33] define skelton onboarding screen --- .../components/loginButton.tsx | 14 ++++++++++++ .../components/signUpButton.tsx | 14 ++++++++++++ src/screens/onboardingScreen/index.tsx | 22 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 src/screens/onboardingScreen/components/loginButton.tsx create mode 100644 src/screens/onboardingScreen/components/signUpButton.tsx create mode 100644 src/screens/onboardingScreen/index.tsx diff --git a/src/screens/onboardingScreen/components/loginButton.tsx b/src/screens/onboardingScreen/components/loginButton.tsx new file mode 100644 index 0000000..b6974d3 --- /dev/null +++ b/src/screens/onboardingScreen/components/loginButton.tsx @@ -0,0 +1,14 @@ +import { useNavigation } from '@react-navigation/native' +import { LoginScreenNavigationProp } from '@screens/mainStackNavigation/navigationProps' +import React, { useCallback } from 'react' +import { Button } from 'react-native' + +export const LoginButton: React.VFC = () => { + const navigation = useNavigation() + + const onPress = useCallback(() => { + navigation.navigate('LoginScreen') + }, [navigation]) + + return