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

refactor: some adjustments to safe area styling #371

Merged
merged 3 commits into from
Oct 4, 2022

Conversation

dannyhw
Copy link
Member

@dannyhw dannyhw commented Jul 15, 2022

Issue:

What I did

as a follow up to #345 I've added some changes to make the no safe area settings only apply to the preview and to make it so the navigation bar doesn't float.

This works by having the safe area insets for the navigation bar when the ui is visible but when you hide the ui then the full screen can be used

How to test

run the example app and open the outside safe area story

With UI hidden:

image

With UI Visible

image

@dannyhw dannyhw added the 6.5 label Jul 15, 2022
@dannyhw
Copy link
Member Author

dannyhw commented Jul 15, 2022

heres a few small iterations on your changes @pvinis what do you think?

@@ -20,5 +20,5 @@ export const parameters = {
};

const styles = StyleSheet.create({
container: { padding: 8, flex: 1 },
container: { /* padding: 8, */ flex: 1 },
Copy link
Member Author

Choose a reason for hiding this comment

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

this is where the padding was coming from btw

@dannyhw dannyhw force-pushed the refactor/minor-change-to-safe-area branch from 0178478 to 65f9d2a Compare October 4, 2022 13:17
@dannyhw dannyhw merged commit e189001 into next-6.0 Oct 4, 2022
@dannyhw dannyhw deleted the refactor/minor-change-to-safe-area branch October 4, 2022 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant