mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
39f694a748
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
49 lines
1.5 KiB
JavaScript
49 lines
1.5 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import Platform from '../Utilities/Platform';
|
|
import typeof AnimatedFlatList from './components/AnimatedFlatList';
|
|
import typeof AnimatedImage from './components/AnimatedImage';
|
|
import typeof AnimatedScrollView from './components/AnimatedScrollView';
|
|
import typeof AnimatedSectionList from './components/AnimatedSectionList';
|
|
import typeof AnimatedText from './components/AnimatedText';
|
|
import typeof AnimatedView from './components/AnimatedView';
|
|
|
|
const AnimatedMock = require('./AnimatedMock');
|
|
const AnimatedImplementation = require('./AnimatedImplementation');
|
|
|
|
const Animated = ((Platform.isTesting
|
|
? AnimatedMock
|
|
: AnimatedImplementation): typeof AnimatedMock);
|
|
|
|
module.exports = {
|
|
get FlatList(): AnimatedFlatList {
|
|
return require('./components/AnimatedFlatList');
|
|
},
|
|
get Image(): AnimatedImage {
|
|
return require('./components/AnimatedImage');
|
|
},
|
|
get ScrollView(): AnimatedScrollView {
|
|
return require('./components/AnimatedScrollView');
|
|
},
|
|
get SectionList(): AnimatedSectionList {
|
|
return require('./components/AnimatedSectionList');
|
|
},
|
|
get Text(): AnimatedText {
|
|
return require('./components/AnimatedText');
|
|
},
|
|
get View(): AnimatedView {
|
|
return require('./components/AnimatedView');
|
|
},
|
|
...Animated,
|
|
};
|