Use invariant instead of fbjs/lib/invariant

Summary: This is one more step to remove `fbjs` from `react-native-github`. This changes both the internal and external code to use `invariant` from zertosh instead of the copy in fbjs.

Reviewed By: yungsters

Differential Revision: D13195941

fbshipit-source-id: 73564ca1715110e7da9c7ef56dc57374d61377e0
This commit is contained in:
Christoph Nakazawa
2018-12-02 23:49:12 -08:00
committed by Facebook Github Bot
parent cb6eb03776
commit 4148976a83
76 changed files with 75 additions and 92 deletions

View File

@@ -17,7 +17,7 @@ const RCTNetworking = require('RCTNetworking');
* found when Flow v0.54 was deployed. To see the error delete this comment and
* run Flow. */
const base64 = require('base64-js');
const invariant = require('fbjs/lib/invariant');
const invariant = require('invariant');
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
* found when Flow v0.54 was deployed. To see the error delete this comment and
* run Flow. */