Skip to content

Commit e632747

Browse files
ypyakymivtimdorr
andauthored
Fixed Link component prop type check (#7276)
* Fixed Link component prop type check * Update packages/react-router-native/Link.js Co-authored-by: Tim Dorr <[email protected]>
1 parent 8439fdd commit e632747

File tree

1 file changed

+1
-1
lines changed
  • packages/react-router-native

1 file changed

+1
-1
lines changed

packages/react-router-native/Link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const __DEV__ = true; // TODO
4545
if (__DEV__) {
4646
Link.propTypes = {
4747
onPress: PropTypes.func,
48-
component: PropTypes.func,
48+
component: PropTypes.elementType,
4949
replace: PropTypes.bool,
5050
to: PropTypes.oneOfType([PropTypes.string, PropTypes.object])
5151
};

0 commit comments

Comments
 (0)