From dc75d236c56dd7a09848f6b4b8803cf1c3113694 Mon Sep 17 00:00:00 2001 From: Laurin Quast Date: Tue, 19 Feb 2019 07:38:09 +0100 Subject: [PATCH] fix: access on undefined variable --- Video.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Video.js b/Video.js index 945fda43..81c1b802 100644 --- a/Video.js +++ b/Video.js @@ -227,10 +227,10 @@ export default class Video extends Component { }; getViewManagerConfig = viewManagerName => { - if (!UIManager.getViewManagerConfig) { - return UIManager[viewManagerName]; + if (!NativeModules.UIManager.getViewManagerConfig) { + return NativeModules.UIManager[viewManagerName]; } - return UIManager.getViewManagerConfig(viewManagerName); + return NativeModules.UIManager.getViewManagerConfig(viewManagerName); }; render() {