diff --git a/Libraries/Animation/Animated/Interpolation.js b/Libraries/Animation/Animated/Interpolation.js index bed22ec85..b4939846f 100644 --- a/Libraries/Animation/Animated/Interpolation.js +++ b/Libraries/Animation/Animated/Interpolation.js @@ -11,7 +11,14 @@ */ 'use strict'; -var invariant = require('invariant'); +// 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';