mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
eca6c1b965
commit
188caa04e7
Vendored
+2
-2
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user