mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-13 12:30:17 +08:00
Add a deprecation warning when importing PushNotificationIOS (#23396)
Summary: Added a deprecation warning for the `PushNotificationIOS`, module as part of #23313. [General] [Deprecated] - PushNotificationIOS [was moved to community repo](https://github.com/react-native-community/react-native-push-notification-ios) Pull Request resolved: https://github.com/facebook/react-native/pull/23396 Differential Revision: D14055656 Pulled By: cpojer fbshipit-source-id: fc371340aa4d8ac82fee2a3dc6f6c796ae98dde4
This commit is contained in:
committed by
Facebook Github Bot
parent
9df892cfcb
commit
36e026ee89
@@ -286,6 +286,12 @@ module.exports = {
|
||||
return require('PixelRatio');
|
||||
},
|
||||
get PushNotificationIOS() {
|
||||
warnOnce(
|
||||
'pushNotificationIOS-moved',
|
||||
'PushNotificationIOS has been extracted from react-native core and will be removed in a future release. ' +
|
||||
"It can now be installed and imported from '@react-native-community/push-notification-ios' instead of 'react-native'. " +
|
||||
'See https://github.com/react-native-community/react-native-push-notification-ios',
|
||||
);
|
||||
return require('PushNotificationIOS');
|
||||
},
|
||||
get Settings() {
|
||||
|
||||
Reference in New Issue
Block a user