Skip to content

Commit

Permalink
Enable animations in bridgeless mode on iOS
Browse files Browse the repository at this point in the history
Reviewed By: ejanzer

Differential Revision: D21465166

fbshipit-source-id: b34e8e97330b897e20d9a4b05dba1826df569e16
  • Loading branch information
Peter Argany authored and facebook-github-bot committed May 8, 2020
1 parent 77d1380 commit 13ee5c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Libraries/Animated/src/Animated.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 13ee5c4

Please sign in to comment.