Skip to content

Commit

Permalink
RN: Fix requireNativeComponent Check
Browse files Browse the repository at this point in the history
Reviewed By: sahrens, TheSavior

Differential Revision: D7893594

fbshipit-source-id: 83f6995842e9480382c0b2abf6b6e72c6c107a49
  • Loading branch information
yungsters authored and facebook-github-bot committed May 7, 2018
1 parent 1be2541 commit 1c90a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/ReactNative/requireNativeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 1c90a2b

Please sign in to comment.