diff --git a/Libraries/Animated/src/Interpolation.js b/Libraries/Animated/src/Interpolation.js index b97d063b94..50f77ed710 100644 --- a/Libraries/Animated/src/Interpolation.js +++ b/Libraries/Animated/src/Interpolation.js @@ -12,17 +12,9 @@ /* eslint no-bitwise: 0 */ 'use strict'; +var invariant = require('fbjs/lib/invariant'); var normalizeColor = require('normalizeColor'); -// TODO(#7644673): fix this hack once github jest actually checks invariants -var invariant = function(condition, message) { - if (!condition) { - var error = new Error(message); - (error: any).framesToPop = 1; // $FlowIssue - throw error; - } -}; - type ExtrapolateType = 'extend' | 'identity' | 'clamp'; export type InterpolationConfigType = { diff --git a/Libraries/vendor/core/Map.js b/Libraries/vendor/core/Map.js index 114add77b3..b3153b39df 100644 --- a/Libraries/vendor/core/Map.js +++ b/Libraries/vendor/core/Map.js @@ -19,7 +19,7 @@ */ var guid = require('guid'); -var isNode = require('isNode'); +var isNode = require('fbjs/lib/isNode'); var toIterator = require('toIterator'); var _shouldPolyfillES6Collection = require('_shouldPolyfillES6Collection');