mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-01-12 22:51:09 +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
|
||||
const NativeModules = {};
|
||||
const NativeModules = {
|
||||
UIManager
|
||||
};
|
||||
|
||||
export default NativeModules;
|
||||
|
||||
@@ -97,7 +97,10 @@ const UIManager = {
|
||||
|
||||
configureNextLayoutAnimation(config, onAnimationDidEnd) {
|
||||
onAnimationDidEnd();
|
||||
}
|
||||
},
|
||||
|
||||
// mocks
|
||||
setLayoutAnimationEnabledExperimental() {}
|
||||
};
|
||||
|
||||
export default UIManager;
|
||||
|
||||
Reference in New Issue
Block a user