Skip to content

Can SafeAreaView be a function of View? #256

@TheRohitSharma

Description

@TheRohitSharma

Introduction

When I imported SafeAreaView it right next to my import for View, it made me wonder why the former can't be absorbed into the latter.

Details

Having to only import the View component and possibly just pass it a prop like safeArea would make things just a bit simpler, and we'd only have to import the View component that we're likely already using vs. juggling both. I have a feeling this has already been discussed/considered, but I couldn't find anything by searching.

Discussion points

  • is there a known reason the function of SafeAreaView couldn't simply exist as a prop on View?
  • Are there benefits to the two components being separate?

P.S. Been a React Native lover for a few years now, but it's my first time here, so hi 👋

Metadata

Metadata

Assignees

No one assigned

    Labels

    🗣 DiscussionThis label identifies an ongoing discussion on a subject

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions