-
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.
- Loading branch information
Showing
7 changed files
with
52 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { StyleSheet, SafeAreaView } from 'react-native'; | ||
|
||
const PageContainer = ({ children }) => { | ||
return <SafeAreaView style={styles.screenArea}>{children}</SafeAreaView>; | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
screenArea: { | ||
...Platform.select({ | ||
ios: { | ||
flex: 1, | ||
backgroundColor: 'white', | ||
}, | ||
android: { | ||
flex: 1, | ||
paddingTop: 30, | ||
backgroundColor: 'white', | ||
}, | ||
}), | ||
}, | ||
}); | ||
|
||
export default PageContainer; |
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
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
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,26 +1,16 @@ | ||
import { CustomButton } from '../components'; | ||
import { View, SafeAreaView, StyleSheet } from 'react-native'; | ||
import { PageContainer } from '../components/index'; | ||
|
||
const SettingPage = ({ navigation: { navigate } }) => { | ||
return ( | ||
<SafeAreaView style={styles.screenArea}> | ||
<PageContainer> | ||
<CustomButton | ||
buttonText="로그아웃" | ||
onPress={() => navigate('Stacks', { screen: '로그인' })} | ||
/> | ||
<CustomButton buttonText="다크 모드" /> | ||
</SafeAreaView> | ||
</PageContainer> | ||
); | ||
}; | ||
|
||
export default SettingPage; | ||
|
||
const styles = StyleSheet.create({ | ||
screenArea: { | ||
...Platform.select({ | ||
android: { | ||
paddingTop: 30, | ||
}, | ||
}), | ||
}, | ||
}); |
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