[fix] add UIManager to NativeModules

This commit is contained in:
Nicolas Gallagher
2018-05-25 13:22:41 -07:00
parent c3eedabac4
commit bfaca0557b
2 changed files with 19 additions and 2 deletions

View File

@@ -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;

View File

@@ -97,7 +97,10 @@ const UIManager = {
configureNextLayoutAnimation(config, onAnimationDidEnd) {
onAnimationDidEnd();
}
},
// mocks
setLayoutAnimationEnabledExperimental() {}
};
export default UIManager;