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:
David Aurelio 2017-03-21 05:35:57 -07:00 committed by Facebook Github Bot
parent 2f69c5f46c
commit 80e1dbf692
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
const DeviceInfo = require('NativeModules').DeviceInfo; const DeviceInfo = require('NativeModules').DeviceInfo;
const invariant = require('invariant'); const invariant = require('fbjs/lib/invariant');
invariant(DeviceInfo, 'DeviceInfo native module is not installed correctly'); invariant(DeviceInfo, 'DeviceInfo native module is not installed correctly');