mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d344fb4e29
commit
39f694a748
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user