From 1c90a2b47b420a4b6aa16a55a344cc08f0eacbe3 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Mon, 7 May 2018 16:45:11 -0700 Subject: [PATCH] RN: Fix `requireNativeComponent` Check Reviewed By: sahrens, TheSavior Differential Revision: D7893594 fbshipit-source-id: 83f6995842e9480382c0b2abf6b6e72c6c107a49 --- Libraries/ReactNative/requireNativeComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/ReactNative/requireNativeComponent.js b/Libraries/ReactNative/requireNativeComponent.js index 0e09ad9f8096ec..6d215e79fb7762 100644 --- a/Libraries/ReactNative/requireNativeComponent.js +++ b/Libraries/ReactNative/requireNativeComponent.js @@ -101,7 +101,7 @@ function requireNativeComponent( const viewConfig = UIManager[viewName]; invariant( - viewConfig != null && !viewConfig.NativeProps != null, + viewConfig != null && viewConfig.NativeProps != null, 'Native component for "%s" does not exist', viewName, );