Enable animations in bridgeless mode on iOS

Reviewed By: ejanzer

Differential Revision: D21465166

fbshipit-source-id: b34e8e97330b897e20d9a4b05dba1826df569e16
This commit is contained in:
Peter Argany
2020-05-08 16:13:42 -07:00
committed by Facebook GitHub Bot
parent 77d1380f17
commit 13ee5c4c16
+1 -3
View File
@@ -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);