Skip to content

Commit

Permalink
Move NetInfo JS module to FB internal
Browse files Browse the repository at this point in the history
Summary: This removes the NetInfo import from RN and moves it to FB internal. Follow-up diffs will move the Android and iOS files as well.

Reviewed By: rubennorte

Differential Revision: D15392486

fbshipit-source-id: b868b671b8d91661bc7634b4662074ae953835be
  • Loading branch information
cpojer authored and facebook-github-bot committed May 20, 2019
1 parent 2ad3bb2 commit 5a30c2a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 435 deletions.
240 changes: 0 additions & 240 deletions Libraries/Network/NetInfo.js

This file was deleted.

9 changes: 0 additions & 9 deletions Libraries/react-native/react-native-implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,6 @@ module.exports = {
get NativeEventEmitter() {
return require('NativeEventEmitter');
},
get NetInfo() {
warnOnce(
'netinfo-moved',
'NetInfo 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/netinfo' instead of 'react-native'. " +
'See https://github.com/react-native-community/react-native-netinfo',
);
return require('NetInfo');
},
get PanResponder() {
return require('PanResponder');
},
Expand Down
Loading

0 comments on commit 5a30c2a

Please sign in to comment.