Clarify the deprecation message for react-native-safe-area-context (#52589)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/52589

The correct url for react-native-safe-area-context is:
https://github.com/AppAndFlow/react-native-safe-area-context
the former would still work through a redirect but let's be explicit here.

Changelog:
[Internal] [Changed] -

Reviewed By: huntie

Differential Revision: D78272667

fbshipit-source-id: dd8c2d6bf7e8c97e18f260e669e305734d657a51
This commit is contained in:
Nicola Corti
2025-07-15 08:56:06 -07:00
committed by Facebook GitHub Bot
parent eca6c1b965
commit 188caa04e7
+2 -2
View File
@@ -86,14 +86,14 @@ module.exports = {
/**
* @deprecated SafeAreaView has been deprecated and will be removed in a future release.
* Please use 'react-native-safe-area-context' instead.
* See https://github.com/th3rdwave/react-native-safe-area-context
* See https://github.com/AppAndFlow/react-native-safe-area-context
*/
get SafeAreaView() {
warnOnce(
'safe-area-view-deprecated',
'SafeAreaView has been deprecated and will be removed in a future release. ' +
"Please use 'react-native-safe-area-context' instead. " +
'See https://github.com/th3rdwave/react-native-safe-area-context',
'See https://github.com/AppAndFlow/react-native-safe-area-context',
);
return require('./Libraries/Components/SafeAreaView/SafeAreaView').default;
},