From 0fe26db679c4f956e49e819732bbdab8f6825f8e Mon Sep 17 00:00:00 2001 From: Dawid Date: Thu, 14 Feb 2019 06:14:50 -0800 Subject: [PATCH] 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 --- Libraries/react-native/react-native-implementation.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Libraries/react-native/react-native-implementation.js b/Libraries/react-native/react-native-implementation.js index 9bf402ffc46..2386ca25add 100644 --- a/Libraries/react-native/react-native-implementation.js +++ b/Libraries/react-native/react-native-implementation.js @@ -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() {