From 39f694a748eb37a1fcf1cbb70c44d53c2eaf62cc Mon Sep 17 00:00:00 2001 From: Emily Janzer Date: Thu, 27 Aug 2020 15:06:38 -0700 Subject: [PATCH] Re-enable animations on Android 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 --- Libraries/Animated/Animated.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Animated/Animated.js b/Libraries/Animated/Animated.js index e7d43e650b2..323f8d38afc 100644 --- a/Libraries/Animated/Animated.js +++ b/Libraries/Animated/Animated.js @@ -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);