From 13ee5c4c166388dca126d5565e34a3671c724bc2 Mon Sep 17 00:00:00 2001 From: Peter Argany Date: Fri, 8 May 2020 16:10:26 -0700 Subject: [PATCH] Enable animations in bridgeless mode on iOS Reviewed By: ejanzer Differential Revision: D21465166 fbshipit-source-id: b34e8e97330b897e20d9a4b05dba1826df569e16 --- Libraries/Animated/src/Animated.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Libraries/Animated/src/Animated.js b/Libraries/Animated/src/Animated.js index 580b40f0ef9..0891d75a3f3 100644 --- a/Libraries/Animated/src/Animated.js +++ b/Libraries/Animated/src/Animated.js @@ -21,9 +21,7 @@ import typeof AnimatedView from './components/AnimatedView'; const AnimatedMock = require('./AnimatedMock'); const AnimatedImplementation = require('./AnimatedImplementation'); -//TODO(T57411659): Remove the bridgeless check when Animated perf regressions are fixed. -const Animated = ((Platform.isTesting || -(global.RN$Bridgeless && Platform.OS === 'ios') +const Animated = ((Platform.isTesting ? AnimatedMock : AnimatedImplementation): typeof AnimatedMock);