Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Introduce unified safeArea property #12

rigor789 started this conversation in 1. Ideas & Discussions
Discussion options

Since there is a need for multiple safe area modifications I came to this thought.
Would it make sense if there was a single safeArea property that accepts types?

Here is an example in the form of xml:

<GridLayout iosSafeArea="normal"/><!-- default, usually no need to set -->
<GridLayout iosSafeArea="overflow"/>
<GridLayout iosSafeArea="ignore"/>

Of course, this would be a problem for users that already use existing overflow property.

Originally posted by @dimitrisrk in NativeScript/NativeScript#9092 (comment)

You must be logged in to vote

Replies: 2 comments 2 replies

Comment options

rigor789
Dec 8, 2020
Maintainer Author

@dimitrisrk I like it - however I wonder if we should just use safeArea="..." opening up the possibility to implement on Android in the future (if required).

Either way it'd be a breaking change - but the migration would be easy - so I'd say we could go for it in 8.0

Originally posted in NativeScript/NativeScript#9092 (comment)

You must be logged in to vote
2 replies
Comment options

rigor789 Dec 8, 2020
Maintainer Author

Another thought: we could introduce this in 8.0 and alias the old iosOverflowSafeArea property to it and mark it deprecated until the next major, giving people time to refactor without breaking anything.

Comment options

rigor789 Dec 8, 2020
Maintainer Author

Comment options

I'm a little late to the party here, but PlayStore is now forcing new and updated apps to target SDK 35, and this will enable edge-to-edge by default: https://developer.android.com/develop/ui/views/layout/edge-to-edge

Having built in support for this for Android as we do for iOS would be amazing.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /