Repository navigation
Deprecating SafeAreaView - #51896
Deprecating SafeAreaView#51896kikoso wants to merge 10 commits into
Conversation
|
Hi @kikoso! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
@kikoso - let's add the deprecation warnings to the SafeAreaView.d.ts and SafeAreaView.js |
Hi @mojavad . Would the latest commit work out? |
|
@kikoso that looks good to me :) Thanks |
|
@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@cortinico merged this pull request in 73133a3. |
|
This pull request was successfully merged by @kikoso in 73133a3 When will my fix make it into a release? | How to file a pick request? |
Summary:
SafeAreaViewhas been marked for deprecation some time ago. The following discussion summarizes some of the arguments for it, but in a nutshell: it is iOS-only, limited in functionality, and incompatible with Android 15's enforced edge-to-edge rendering.The Android/Kotlin classes have also been deprecated.Not anymore, they are internal and might stay as they are.Changelog:
[General] [Deprecated] - Deprecate SafeAreaView due to its iOS-only support and incompatibility with Android 15 edge-to-edge behavior; recommend using react-native-safe-area-context instead.
Test Plan:
Access
SafeAreaViewin your code and check that the deprecation warning logs exactly once in the console.