require `fbjs/lib/invariant`, not `invariant`
Summary: `invariant` is only available in open source because we install it as a transitive dependency into node_modules Reviewed By: jeanlauliac Differential Revision: D4745582 fbshipit-source-id: 27c49b576254c8d1d667dea7097d16cdd1205daf
This commit is contained in:
parent
2f69c5f46c
commit
80e1dbf692
|
@ -13,7 +13,7 @@
|
|||
|
||||
const DeviceInfo = require('NativeModules').DeviceInfo;
|
||||
|
||||
const invariant = require('invariant');
|
||||
const invariant = require('fbjs/lib/invariant');
|
||||
|
||||
invariant(DeviceInfo, 'DeviceInfo native module is not installed correctly');
|
||||
|
||||
|
|
Loading…
Reference in New Issue