From bfaca0557bf7df669744a1df8f99e0165e5bdc84 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 25 May 2018 13:22:41 -0700 Subject: [PATCH] [fix] add UIManager to NativeModules --- .../src/exports/NativeModules/index.js | 16 +++++++++++++++- .../src/exports/UIManager/index.js | 5 ++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/packages/react-native-web/src/exports/NativeModules/index.js b/packages/react-native-web/src/exports/NativeModules/index.js index 6964e433..23847f38 100644 --- a/packages/react-native-web/src/exports/NativeModules/index.js +++ b/packages/react-native-web/src/exports/NativeModules/index.js @@ -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; diff --git a/packages/react-native-web/src/exports/UIManager/index.js b/packages/react-native-web/src/exports/UIManager/index.js index 7ed29831..41a63cc6 100644 --- a/packages/react-native-web/src/exports/UIManager/index.js +++ b/packages/react-native-web/src/exports/UIManager/index.js @@ -97,7 +97,10 @@ const UIManager = { configureNextLayoutAnimation(config, onAnimationDidEnd) { onAnimationDidEnd(); - } + }, + + // mocks + setLayoutAnimationEnabledExperimental() {} }; export default UIManager;