RN: Fix `requireNativeComponent` Check
Reviewed By: sahrens, TheSavior Differential Revision: D7893594 fbshipit-source-id: 83f6995842e9480382c0b2abf6b6e72c6c107a49
This commit is contained in:
parent
1be2541ce2
commit
1c90a2b47b
|
@ -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,
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue