Remove SafeAreaView from public API#57395
Conversation
|
Warning JavaScript API change detected This PR commits an update to
This change was flagged as: |
|
Thanks for working on this! We should follow the approach we've been following with other deprecated APIs. We should export a value in DEV that fails, and then remove it in a couple of releases. |
966e3d2 to
d398a39
Compare
|
@rubennorte Added ✅ (I followed the |
|
@Abbondanzo has imported this pull request. If you are a Meta employee, you can view this in D110334258. |
# Conflicts: # packages/react-native/ReactNativeApi.d.ts # Conflicts: # packages/react-native/ReactNativeApi.d.ts
f22b6f7 to
df3a1ca
Compare
|
Unfortunately SafeAreaView cannot be removed yet until we migrate all the uses within Meta internal codebase. This is an issue since Meta uses a monorepo and has direct dependency on the codebase without versioning. |
Summary:
Removes the deprecated public
SafeAreaViewcomponent (deprecated since 0.81). Usereact-native-safe-area-contextinstead.The native implementation is kept, since RN internals (LogBox, InputAccessoryView, element Inspector) still rely on it via
SafeAreaView_INTERNAL_DO_NOT_USE. The few internals that imported the public component now import the internal wrapper.See #57384
Changelog:
[GENERAL] [REMOVED] - Remove deprecated
SafeAreaViewcomponentTest Plan:
yarn flow-check: 0 errorsyarn test-typescript: passesyarn jest packages/react-native/Libraries/LogBox: passesrequire('react-native').SafeAreaViewisundefined