Skip to content

Commit

Permalink
Re-enable animations on Android
Browse files Browse the repository at this point in the history
Summary:
We disabled animations on Android because native driver animations weren't working yet. After recent changes in NativeAnimatedModule, animations are now working as expected. This diff re-enables animations for bridgeless mode on Android.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D22605612

fbshipit-source-id: 7a7078bf23bb88e7745fc899e1a5ff551425dbad
  • Loading branch information
Emily Janzer authored and facebook-github-bot committed Aug 27, 2020
1 parent d344fb4 commit 39f694a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Libraries/Animated/Animated.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ import typeof AnimatedView from './components/AnimatedView';
const AnimatedMock = require('./AnimatedMock');
const AnimatedImplementation = require('./AnimatedImplementation');

const Animated = ((Platform.isTesting ||
(Platform.OS === 'android' && global.RN$Bridgeless)
const Animated = ((Platform.isTesting
? AnimatedMock
: AnimatedImplementation): typeof AnimatedMock);

Expand Down

0 comments on commit 39f694a

Please sign in to comment.