We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c49dff7 commit 9c6e483Copy full SHA for 9c6e483
Libraries/NetInfo/NetInfo.web.js
@@ -9,7 +9,6 @@
9
'use strict';
10
11
import ExecutionEnvironment from 'fbjs/lib/ExecutionEnvironment';
12
-import findIndex from 'array-find-index';
13
import invariant from 'fbjs/lib/invariant';
14
15
const connection =
@@ -88,7 +87,7 @@ const NetInfo = {
88
87
type
89
);
90
91
- const listenerIndex = findIndex(connectionListeners, pair => pair[0] === handler);
+ const listenerIndex = connectionListeners.findIndex(pair => pair[0] === handler);
92
invariant(
93
listenerIndex !== -1,
94
'Trying to remove NetInfo connection listener for unregistered handler'
0 commit comments