Skip to content

Commit

Permalink
Merge pull request #39 from BOBpossible/feat/#37_Onboarding
Browse files Browse the repository at this point in the history
Feat/#37 onboarding
  • Loading branch information
yejinleee authored Jul 5, 2022
2 parents 8ae5846 + 442dee4 commit 075df8a
Show file tree
Hide file tree
Showing 39 changed files with 633 additions and 4 deletions.
Binary file added android/app/src/main/assets/fonts/AntDesign.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Entypo.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/EvilIcons.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Feather.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Fontisto.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Foundation.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Ionicons.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Octicons.ttf
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Zocial.ttf
Binary file not shown.
64 changes: 64 additions & 0 deletions ios/BOB_FrontEnd.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@
D6D041C14C1D4CC0B3849B2B /* Pretendard-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 11C955E157164BEF96CBCC24 /* Pretendard-Regular.ttf */; };
DAD7698A2860A37300C84CF1 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = DAD769892860A37300C84CF1 /* GoogleService-Info.plist */; };
F2D1474B88BC47BDBF1013E0 /* Poppins-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 193D3C47DC2D49CAB80AA0A8 /* Poppins-Bold.ttf */; };
CE83DF01E7E745B992164AD0 /* AntDesign.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 80A923A32DF442BFA087A2B3 /* AntDesign.ttf */; };
EF305D57FDDC42AB96867A9B /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F1BF3EBCD9CE4FA0B27F07BC /* Entypo.ttf */; };
21DD42BE52AF427BB9E10AED /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 699226D02CF14DAE943516B4 /* EvilIcons.ttf */; };
3E69BEAB4FA14945B9B5567F /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 5947CD02578948D38A2B3B10 /* Feather.ttf */; };
3492FF5AF0834AF0B6EE9330 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 930D026C73444611B9433E3E /* FontAwesome.ttf */; };
7B8A3B9E5AB54DF69CD5459C /* FontAwesome5_Brands.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 93CBA7981FF34DC2AD115C78 /* FontAwesome5_Brands.ttf */; };
169967ADAB644C6AAF90147C /* FontAwesome5_Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7E0D934535CF41D9838CA1CF /* FontAwesome5_Regular.ttf */; };
4684C9ECBE014B7D84DED310 /* FontAwesome5_Solid.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A7F4E295569E4828B5EE5F83 /* FontAwesome5_Solid.ttf */; };
2AF90D6EBED24249A2A4D331 /* Fontisto.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 31AA64C227684DA7B8D6996F /* Fontisto.ttf */; };
DF35045D253A4766835F368C /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9CE1B1A6EB514980BEA545D4 /* Foundation.ttf */; };
FE5C7B455C894083BD435F55 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 607C2FD2A1A74934A70C7B88 /* Ionicons.ttf */; };
66FAC7B967C149C79FBBF872 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 39F579AF87BD4A83AFE3F70E /* MaterialCommunityIcons.ttf */; };
D82FC3AE98B24E1380D8C3E1 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 881E8B0D20F84E30A1D4EF6F /* MaterialIcons.ttf */; };
DE21697214D2483A8BDB9661 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 89EACDD9ACE54A2F98F89F55 /* Octicons.ttf */; };
8AA843AEDE214EECA8ECF36D /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F39926296CF3463485E2A6F9 /* SimpleLineIcons.ttf */; };
AC45C8F9AA954BE2A48F744A /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 716A396D734549099970F2D4 /* Zocial.ttf */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -57,6 +73,22 @@
DA4D399328742AD400BCAFF5 /* BOB_FrontEnd.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = BOB_FrontEnd.entitlements; path = BOB_FrontEnd/BOB_FrontEnd.entitlements; sourceTree = "<group>"; };
DAD769892860A37300C84CF1 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
80A923A32DF442BFA087A2B3 /* AntDesign.ttf */ = {isa = PBXFileReference; name = "AntDesign.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
F1BF3EBCD9CE4FA0B27F07BC /* Entypo.ttf */ = {isa = PBXFileReference; name = "Entypo.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
699226D02CF14DAE943516B4 /* EvilIcons.ttf */ = {isa = PBXFileReference; name = "EvilIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
5947CD02578948D38A2B3B10 /* Feather.ttf */ = {isa = PBXFileReference; name = "Feather.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
930D026C73444611B9433E3E /* FontAwesome.ttf */ = {isa = PBXFileReference; name = "FontAwesome.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
93CBA7981FF34DC2AD115C78 /* FontAwesome5_Brands.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Brands.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
7E0D934535CF41D9838CA1CF /* FontAwesome5_Regular.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Regular.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
A7F4E295569E4828B5EE5F83 /* FontAwesome5_Solid.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Solid.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
31AA64C227684DA7B8D6996F /* Fontisto.ttf */ = {isa = PBXFileReference; name = "Fontisto.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
9CE1B1A6EB514980BEA545D4 /* Foundation.ttf */ = {isa = PBXFileReference; name = "Foundation.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
607C2FD2A1A74934A70C7B88 /* Ionicons.ttf */ = {isa = PBXFileReference; name = "Ionicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
39F579AF87BD4A83AFE3F70E /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; name = "MaterialCommunityIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
881E8B0D20F84E30A1D4EF6F /* MaterialIcons.ttf */ = {isa = PBXFileReference; name = "MaterialIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
89EACDD9ACE54A2F98F89F55 /* Octicons.ttf */ = {isa = PBXFileReference; name = "Octicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
F39926296CF3463485E2A6F9 /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
716A396D734549099970F2D4 /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -161,6 +193,22 @@
11C955E157164BEF96CBCC24 /* Pretendard-Regular.ttf */,
4752C974ABD44F989EB7740B /* Pretendard-SemiBold.ttf */,
193D3C47DC2D49CAB80AA0A8 /* Poppins-Bold.ttf */,
80A923A32DF442BFA087A2B3 /* AntDesign.ttf */,
F1BF3EBCD9CE4FA0B27F07BC /* Entypo.ttf */,
699226D02CF14DAE943516B4 /* EvilIcons.ttf */,
5947CD02578948D38A2B3B10 /* Feather.ttf */,
930D026C73444611B9433E3E /* FontAwesome.ttf */,
93CBA7981FF34DC2AD115C78 /* FontAwesome5_Brands.ttf */,
7E0D934535CF41D9838CA1CF /* FontAwesome5_Regular.ttf */,
A7F4E295569E4828B5EE5F83 /* FontAwesome5_Solid.ttf */,
31AA64C227684DA7B8D6996F /* Fontisto.ttf */,
9CE1B1A6EB514980BEA545D4 /* Foundation.ttf */,
607C2FD2A1A74934A70C7B88 /* Ionicons.ttf */,
39F579AF87BD4A83AFE3F70E /* MaterialCommunityIcons.ttf */,
881E8B0D20F84E30A1D4EF6F /* MaterialIcons.ttf */,
89EACDD9ACE54A2F98F89F55 /* Octicons.ttf */,
F39926296CF3463485E2A6F9 /* SimpleLineIcons.ttf */,
716A396D734549099970F2D4 /* Zocial.ttf */,
);
name = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -279,6 +327,22 @@
1361569F6A8C4E128DF3EC4A /* Pretendard-SemiBold.ttf in Resources */,
DAD7698A2860A37300C84CF1 /* GoogleService-Info.plist in Resources */,
F2D1474B88BC47BDBF1013E0 /* Poppins-Bold.ttf in Resources */,
CE83DF01E7E745B992164AD0 /* AntDesign.ttf in Resources */,
EF305D57FDDC42AB96867A9B /* Entypo.ttf in Resources */,
21DD42BE52AF427BB9E10AED /* EvilIcons.ttf in Resources */,
3E69BEAB4FA14945B9B5567F /* Feather.ttf in Resources */,
3492FF5AF0834AF0B6EE9330 /* FontAwesome.ttf in Resources */,
7B8A3B9E5AB54DF69CD5459C /* FontAwesome5_Brands.ttf in Resources */,
169967ADAB644C6AAF90147C /* FontAwesome5_Regular.ttf in Resources */,
4684C9ECBE014B7D84DED310 /* FontAwesome5_Solid.ttf in Resources */,
2AF90D6EBED24249A2A4D331 /* Fontisto.ttf in Resources */,
DF35045D253A4766835F368C /* Foundation.ttf in Resources */,
FE5C7B455C894083BD435F55 /* Ionicons.ttf in Resources */,
66FAC7B967C149C79FBBF872 /* MaterialCommunityIcons.ttf in Resources */,
D82FC3AE98B24E1380D8C3E1 /* MaterialIcons.ttf in Resources */,
DE21697214D2483A8BDB9661 /* Octicons.ttf in Resources */,
8AA843AEDE214EECA8ECF36D /* SimpleLineIcons.ttf in Resources */,
AC45C8F9AA954BE2A48F744A /* Zocial.ttf in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
16 changes: 16 additions & 0 deletions ios/BOB_FrontEnd/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@
<string>Pretendard-Medium.ttf</string>
<string>Pretendard-Regular.ttf</string>
<string>Pretendard-SemiBold.ttf</string>
<string>AntDesign.ttf</string>
<string>Entypo.ttf</string>
<string>EvilIcons.ttf</string>
<string>Feather.ttf</string>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Fontisto.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>Octicons.ttf</string>
<string>SimpleLineIcons.ttf</string>
<string>Zocial.ttf</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
Expand Down
Binary file added src/assets/images/onBoarding/ob3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onBoarding/ob4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onBoarding/ob5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onBoarding/ob6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onBoarding/obBob1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onBoarding/obBob2cheek.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onBoarding/obDot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onBoarding/obText1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/onBoarding/obText2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions src/components/OnBoardingHeader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import React from 'react';
import type {FC} from 'react';
import {StyleSheet, Text, TouchableOpacity, View} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {DesignSystem} from '../assets/DesignSystem';
import {useNavigation} from '@react-navigation/native';

export type OnBoardingHeaderProps = {
goBack?: () => void;
};

export const OnBoardingHeader: FC<OnBoardingHeaderProps> = ({goBack}) => {
const navigation = useNavigation();
return (
<View style={[styles.headerWrap]}>
{goBack !== undefined ? (
<TouchableOpacity onPress={goBack}>
<View style={[styles.backButton]}>
<Icon name="arrow-left" size={24} color="black" />
</View>
</TouchableOpacity>
) : (
<View />
)}
<TouchableOpacity onPress={() => navigation.reset({routes: [{name: 'MainNavigator'}]})}>
<Text style={[DesignSystem.body2Lt, {color: '#949494'}]}>건너뛰기</Text>
</TouchableOpacity>
</View>
);
};

const styles = StyleSheet.create({
headerWrap: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
marginLeft: 16,
marginRight: 16,
height: 50,
},
backButton: {
zIndex: 1,
// width: 16,
// height: 15.56,
justifyContent: 'center',
alignItems: 'center',
},
disable: {opacity: 0},
progressText: {
color: '#949494',
fontSize: 16,
},
});
40 changes: 40 additions & 0 deletions src/components/OnBoardingNextButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import React from 'react';
import type {FC} from 'react';
import {StyleSheet, Text, TouchableOpacity, View} from 'react-native';

export type OnBoardingNextButtonProps = {
goNext: () => void;
text: string;
};

export const OnBoardingNextButton: FC<OnBoardingNextButtonProps> = ({goNext, text}) => {
return (
<TouchableOpacity onPress={goNext} style={[styles.buttonWrap]}>
<View
style={[styles.buttonStyle, text === '다음' ? styles.blackButton : styles.purpleButton]}
>
<Text
style={{fontFamily: 'Pretendard-Medium', color: 'white', fontSize: 18, lineHeight: 24}}
>
{text}
</Text>
</View>
</TouchableOpacity>
);
};

const styles = StyleSheet.create({
buttonWrap: {justifyContent: 'center', alignItems: 'center', margin: 20},
buttonStyle: {
width: '100%',
height: 56,
justifyContent: 'center',
alignItems: 'center',
borderRadius: 10,
},
blackButton: {
backgroundColor: '#2A2A2A',
},
stateNextButton: {backgroundColor: '#2A2A2A'},
purpleButton: {backgroundColor: '#6C69FF'},
});
22 changes: 22 additions & 0 deletions src/nav/AuthNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import {MainNavigator} from './MainNavigator';
import Register from '../screens/Register';
import RegisterForm from '../screens/RegisterForm';
import RegisterCategory from '../screens/RegisterCategory';
import RegisterDone from '../screens/onBoarding/RegisterDone';
import HowTo1 from '../screens/onBoarding/HowTo1';
import HowTo2 from '../screens/onBoarding/HowTo2';
import HowTo3 from '../screens/onBoarding/HowTo3';
import HowTo4 from '../screens/onBoarding/HowTo4';
import HowTo5 from '../screens/onBoarding/HowTo5';
import HowTo6 from '../screens/onBoarding/HowTo6';
import {RegisterInterface} from '../data';

export type AuthStackParamList = {
Expand All @@ -14,6 +21,13 @@ export type AuthStackParamList = {
Register: undefined;
RegisterForm: {registerData: RegisterInterface};
RegisterCategory: {registerData: RegisterInterface};
RegisterDone: undefined;
HowTo1: undefined;
HowTo2: undefined;
HowTo3: undefined;
HowTo4: undefined;
HowTo5: undefined;
HowTo6: undefined;
MainNavigator: undefined;
};

Expand All @@ -29,6 +43,14 @@ export const AuthNavigator = () => {
<Stack.Screen name="Register" component={Register} />
<Stack.Screen name="RegisterForm" component={RegisterForm} />
<Stack.Screen name="RegisterCategory" component={RegisterCategory} />
<Stack.Screen name="RegisterDone" component={RegisterDone} />
<Stack.Screen name="HowTo1" component={HowTo1} />
<Stack.Screen name="HowTo2" component={HowTo2} />
<Stack.Screen name="HowTo3" component={HowTo3} />
<Stack.Screen name="HowTo4" component={HowTo4} />
<Stack.Screen name="HowTo5" component={HowTo5} />
<Stack.Screen name="HowTo6" component={HowTo6} />
{/* 온보딩페이지들여기쭉 */}
<Stack.Screen name="MainNavigator" component={MainNavigator} />
</Stack.Navigator>
);
Expand Down
3 changes: 2 additions & 1 deletion src/screens/RegisterCategory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ const RegisterCategory = ({navigation, route}: Props) => {
const goNext = () => {
postRegister();
postCategories();
navigation.reset({routes: [{name: 'MainNavigator'}]});
// navigation.reset({routes: [{name: 'MainNavigator'}]});
navigation.navigate('RegisterDone');
};
const goBack = () => {
navigation.navigate('RegisterForm', {registerData});
Expand Down
6 changes: 3 additions & 3 deletions src/screens/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const RegisterForm = ({navigation, route}: Props) => {
style={[{flex: 1}]}
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
>
<ScrollView style={[styles.flex, styles.formWrap]}>
{/* <ScrollView style={[styles.flex, styles.formWrap]}>
<Controller
control={control}
rules={{
Expand Down Expand Up @@ -139,9 +139,9 @@ const RegisterForm = ({navigation, route}: Props) => {
{errors.address?.type === 'required' && (
<Text style={[styles.errorMessage]}>필수 입력사항입니다.</Text>
)}
</ScrollView>
</ScrollView> */}
</KeyboardAvoidingView>
<RegisterNextButton goNext={handleSubmit(onSubmit)} buttonState={isValid ? 1 : 0} />
<RegisterNextButton goNext={handleSubmit(onSubmit)} buttonState={1} />
</SafeAreaView>
);
};
Expand Down
45 changes: 45 additions & 0 deletions src/screens/onBoarding/HowTo1.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import {NativeStackScreenProps} from '@react-navigation/native-stack';
import React, {useEffect, useState} from 'react';
import {View, StyleSheet, Text, Image} from 'react-native';
import {SafeAreaView} from 'react-native-safe-area-context';
import {RegisterHeader, RegisterNextButton} from '../../components';
import {OnBoardingHeader} from '../../components/OnBoardingHeader';
import {OnBoardingNextButton} from '../../components/OnBoardingNextButton';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {DesignSystem} from '../../assets/DesignSystem';

const HowTo1 = ({navigation, route}: Props) => {
const [loading, setLoading] = useState(false);
const goNext = () => {
navigation.navigate('HowTo2');
};
useEffect(() => {
const id = setTimeout(() => {
setLoading(true);
}, 1000);
return () => {
clearTimeout(id);
};
}, []);
return (
<SafeAreaView style={[styles.flex]}>
<OnBoardingHeader goBack={() => console.log('back')} />
<View style={[styles.flex, DesignSystem.centerArrange]}>
<Image source={require('../../assets/images/onBoarding/obText1.png')} />
<Image source={require('../../assets/images/onBoarding/obBob1.png')} />
</View>
{loading ? (
<OnBoardingNextButton goNext={goNext} text={'다음'} />
) : (
<View style={{height: 56, margin: 20}} />
)}
</SafeAreaView>
);
};

const styles = StyleSheet.create({
flex: {flex: 1, backgroundColor: '#FFFFFF'},

});

export default HowTo1;
Loading

0 comments on commit 075df8a

Please sign in to comment.