Add deprecation warning for ImageEditor (#23452)

Summary:
Add a deprecation warning for the [ImageEditor](https://facebook.github.io/react-native/docs/imageeditor) module as part of #23313.

[General] [Deprecated] - Deprecated [ImageEditor](https://facebook.github.io/react-native/docs/imageeditor) as it has now been moved to [react-native-community/image-editor](https://github.com/react-native-community/react-native-image-editor)
Pull Request resolved: https://github.com/facebook/react-native/pull/23452

Differential Revision: D14082792

Pulled By: cpojer

fbshipit-source-id: 2315b4518ce20a0ec4e97f421960e4ab923ba21d
This commit is contained in:
Dawid 2019-02-14 06:14:50 -08:00 коммит произвёл Facebook Github Bot
Родитель ac979465b8
Коммит 0fe26db679
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -47,6 +47,12 @@ module.exports = {
return require('ImageBackground');
},
get ImageEditor() {
warnOnce(
'image-editor-moved',
'Image Editor 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/image-editor' instead of 'react-native'. " +
'See https://github.com/react-native-community/react-native-image-editor',
);
return require('ImageEditor');
},
get ImageStore() {