diff --git a/Libraries/Animated/NativeAnimatedHelper.js b/Libraries/Animated/NativeAnimatedHelper.js index 2af18124dc1141..7685f22999ff3b 100644 --- a/Libraries/Animated/NativeAnimatedHelper.js +++ b/Libraries/Animated/NativeAnimatedHelper.js @@ -143,7 +143,10 @@ const API = { }, flushQueue: function (): void { // TODO: (T136971132) - // invariant(NativeAnimatedModule, 'Native animated module is not available'); + invariant( + NativeAnimatedModule || process.env.NODE_ENV === 'test', + 'Native animated module is not available', + ); flushQueueTimeout = null; // Early returns before calling any APIs