Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 가리는 스크린 없게 고침 #34

Merged
merged 8 commits into from
Jan 12, 2023
Merged

Conversation

hobak12
Copy link
Collaborator

@hobak12 hobak12 commented Jan 12, 2023

ios에는safeAreaView, adroid에는 paddingTop 적용
#1
by @hobak12

 ios에는safeAreaView, adroid에는 paddingTop 적용
#1
by @hobak12
@hobak12 hobak12 self-assigned this Jan 12, 2023
@hobak12 hobak12 added the documentation Improvements or additions to documentation label Jan 12, 2023
Comment on lines 90 to 103
const styles = StyleSheet.create({
screenArea: {
...Platform.select({
ios: {
flex: 1,
},
android: {
flex: 1,
paddingTop: 20,
},
}),
},
});

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// components/PageContainer.js
const PageContainer = ({ children }) => {
  return <SafeAreaView style={styles.screenArea}>{children}</SafeAreaView>
}

const styles = StyleSheet.create({
  screenArea: {
    ...Platform.select({
      ios: {
        flex: 1,
      },
      android: {
        flex: 1,
        paddingTop: 20,
      },
    }),
  },
});

코스 수명 하루살이입니다. 반영 안해도 괜찮습니다.

@dypark26 dypark26 merged commit 0535ee4 into dev Jan 12, 2023
@dypark26 dypark26 deleted the feature/fix-screen-area branch January 12, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants