Skip to content

Better SafeAreaView #1046

@diegolmello

Description

@diegolmello

SafeAreaView is a thing just for iPhone devices with notch (iPhone X*).
It doesn't apply to Android.
That said, looking at react-native-safe-area-view implementation, we can see they do a heavy job to identify the device type.

Long story short, we already have our own native implementation returning if it's iPhoneX method and we could only run react-native-safe-area-view only if it's true.
Return an usual <View /> otherwise.
It wouldn't do heavy calculations unnecessary.

It needs investigation and memory debugging to confirm it really works and it does have benefits.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions