Skip to content

Commit

Permalink
feat: onboarding
Browse files Browse the repository at this point in the history
fix - android 이용시 헤더에 component 이름이 보이는 현상 수정
#14
  • Loading branch information
11t518s committed Mar 6, 2022
1 parent a4e60bf commit 9545288
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
4 changes: 2 additions & 2 deletions navigation/OnBoarding/StackNavigationOfOnBoarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function OnBoardingStack({ setIsLogin }: IProps) {
children={() => <Login setIsLogin={setIsLogin} />}
options={{
headerTransparent: true,
headerTitle: '',
title: '',
headerLeft: () => (
<Pressable onPress={() => navigation.goBack()}>
<Image source={require('../../assets/images/common/leftArrow.png')} />
Expand All @@ -45,7 +45,7 @@ function OnBoardingStack({ setIsLogin }: IProps) {
component={OnBoarding}
options={{
headerTransparent: true,
headerTitle: '',
title: '',
headerLeft: () => (
<Pressable onPress={() => navigation.goBack()}>
<Image source={require('../../assets/images/common/leftArrow.png')} />
Expand Down
3 changes: 3 additions & 0 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
assets: ['./src/assets/fonts'],
};
20 changes: 15 additions & 5 deletions screens/landing/styles.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
import { StyleSheet } from 'react-native';
import { StyleSheet, Platform } from 'react-native';
import { mainBlack, mainBlue, mainLightBlue, mainOrange } from '../../color';

const styles = StyleSheet.create({
landingPageFullScreen: { backgroundColor: 'white', flex: 1 },
onBoardingFullScreen: { backgroundColor: mainLightBlue, flex: 1 },
upperElement: { marginTop: 115, marginHorizontal: 17 },
lowerElement: { position: 'absolute', bottom: 60, marginHorizontal: '5%', width: '90%' },
landingPageFullScreen: { backgroundColor: 'white', flex: 1, fontFamily: 'AppleSDGothicNeoM' },
onBoardingFullScreen: {
backgroundColor: mainLightBlue,
flex: 1,
fontFamily: 'AppleSDGothicNeoM',
},
upperElement:
Platform.OS === 'ios'
? { marginTop: 110, marginHorizontal: 17 }
: { marginTop: 50, marginHorizontal: 17 },
lowerElement:
Platform.OS === 'ios'
? { position: 'absolute', bottom: 60, marginHorizontal: '5%', width: '90%' }
: { position: 'absolute', bottom: 40, marginHorizontal: '5%', width: '90%' },
mainText: { fontSize: 24, lineHeight: 40, color: mainBlack },
subText: { marginTop: 32, lineHeight: 30, color: mainBlack },

Expand Down

0 comments on commit 9545288

Please sign in to comment.