mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-29 04:44:52 +08:00
[fix] add UIManager to NativeModules
This commit is contained in:
@@ -1,3 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2016-present, Nicolas Gallagher.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*
|
||||||
|
* @noflow
|
||||||
|
*/
|
||||||
|
|
||||||
|
import UIManager from '../UIManager';
|
||||||
|
|
||||||
// NativeModules shim
|
// NativeModules shim
|
||||||
const NativeModules = {};
|
const NativeModules = {
|
||||||
|
UIManager
|
||||||
|
};
|
||||||
|
|
||||||
export default NativeModules;
|
export default NativeModules;
|
||||||
|
|||||||
@@ -97,7 +97,10 @@ const UIManager = {
|
|||||||
|
|
||||||
configureNextLayoutAnimation(config, onAnimationDidEnd) {
|
configureNextLayoutAnimation(config, onAnimationDidEnd) {
|
||||||
onAnimationDidEnd();
|
onAnimationDidEnd();
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// mocks
|
||||||
|
setLayoutAnimationEnabledExperimental() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default UIManager;
|
export default UIManager;
|
||||||
|
|||||||
Reference in New Issue
Block a user