Skip to content

Commit

Permalink
Update Lean Core package names
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cpojer authored and facebook-github-bot committed Sep 13, 2019
1 parent 9a0ebe0 commit 3666244
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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',
);
},
Expand All @@ -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',
);
},
Expand All @@ -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',
);
},
Expand All @@ -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',
);
},
Expand Down

0 comments on commit 3666244

Please sign in to comment.