Skip to content

Commit 5a30c2a

Browse files
cpojerfacebook-github-bot
authored andcommitted
Move NetInfo JS module to FB internal
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
1 parent 2ad3bb2 commit 5a30c2a

File tree

5 files changed

+0
-435
lines changed

5 files changed

+0
-435
lines changed

Libraries/Network/NetInfo.js

-240
This file was deleted.

Libraries/react-native/react-native-implementation.js

-9
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,6 @@ module.exports = {
250250
get NativeEventEmitter() {
251251
return require('NativeEventEmitter');
252252
},
253-
get NetInfo() {
254-
warnOnce(
255-
'netinfo-moved',
256-
'NetInfo has been extracted from react-native core and will be removed in a future release. ' +
257-
"It can now be installed and imported from '@react-native-community/netinfo' instead of 'react-native'. " +
258-
'See https://github.com/react-native-community/react-native-netinfo',
259-
);
260-
return require('NetInfo');
261-
},
262253
get PanResponder() {
263254
return require('PanResponder');
264255
},

0 commit comments

Comments
 (0)