Skip to content

Commit

Permalink
Fixed Link component prop type check (#7276)
Browse files Browse the repository at this point in the history
* Fixed Link component prop type check

* Update packages/react-router-native/Link.js

Co-authored-by: Tim Dorr <timdorr@users.noreply.github.com>
  • Loading branch information
ypyakymiv and timdorr authored Apr 22, 2020
1 parent 8439fdd commit e632747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-router-native/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const __DEV__ = true; // TODO
if (__DEV__) {
Link.propTypes = {
onPress: PropTypes.func,
component: PropTypes.func,
component: PropTypes.elementType,
replace: PropTypes.bool,
to: PropTypes.oneOfType([PropTypes.string, PropTypes.object])
};
Expand Down

0 comments on commit e632747

Please sign in to comment.