From 3666244a8473448f7ce4b54841567800cc29031e Mon Sep 17 00:00:00 2001 From: Christoph Nakazawa Date: Fri, 13 Sep 2019 07:44:20 -0700 Subject: [PATCH] Update Lean Core package names Summary: The packages all migrated to `react-native-community`, this diff updates the package names in the error messages. Reviewed By: rubennorte Differential Revision: D17343259 fbshipit-source-id: 8539f41410ec59f5ea4f40fd1a6235bfb03eee19 --- index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index c2e3b86246d730..0532da156ec055 100644 --- a/index.js +++ b/index.js @@ -102,7 +102,6 @@ import typeof DeprecatedViewPropTypes from './Libraries/DeprecatedPropTypes/Depr const invariant = require('invariant'); const warnOnce = require('./Libraries/Utilities/warnOnce'); -// Export React, plus some native additions. module.exports = { // Components get AccessibilityInfo(): AccessibilityInfo { @@ -516,7 +515,7 @@ if (__DEV__) { invariant( false, 'NetInfo has been removed from React Native. ' + - "It can now be installed and imported from 'react-native-netinfo' instead of 'react-native'. " + + "It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. " + 'See https://github.com/react-native-community/react-native-netinfo', ); }, @@ -529,7 +528,7 @@ if (__DEV__) { invariant( false, 'CameraRoll has been removed from React Native. ' + - "It can now be installed and imported from 'react-native-cameraroll' instead of 'react-native'. " + + "It can now be installed and imported from '@react-native-community/cameraroll' instead of 'react-native'. " + 'See https://github.com/react-native-community/react-native-cameraroll', ); }, @@ -556,7 +555,7 @@ if (__DEV__) { invariant( false, 'ImageEditor has been removed from React Native. ' + - "It can now be installed and imported from 'react-native-image-editor' instead of 'react-native'. " + + "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', ); }, @@ -569,7 +568,7 @@ if (__DEV__) { invariant( false, 'ViewPagerAndroid has been removed from React Native. ' + - "It can now be installed and imported from 'react-native-viewpager' instead of 'react-native'. " + + "It can now be installed and imported from '@react-native-community/viewpager' instead of 'react-native'. " + 'See https://github.com/react-native-community/react-native-viewpager', ); },