diff --git a/Libraries/react-native/react-native-implementation.js b/Libraries/react-native/react-native-implementation.js index 98a2f3887..059a3be33 100644 --- a/Libraries/react-native/react-native-implementation.js +++ b/Libraries/react-native/react-native-implementation.js @@ -14,6 +14,7 @@ const invariant = require('invariant'); let showedListViewDeprecation = false; let showedSwipeableListViewDeprecation = false; +let showedWebWiewDeprecation = false; // Export React, plus some native additions. module.exports = { @@ -167,6 +168,15 @@ module.exports = { return require('VirtualizedList'); }, get WebView() { + if (!showedWebWiewDeprecation) { + console.warn( + 'WebView 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-webview' instead of 'react-native'. " + + 'See https://github.com/react-native-community/react-native-webview for more informations.', + ); + + showedWebWiewDeprecation = true; + } return require('WebView'); },