Closed mongy92 closed 2 years ago
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch react-native-hyperlink@0.0.19 for the project I'm working on.
react-native-hyperlink@0.0.19
in some cases we need to export the Props
Props
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-hyperlink/index.d.ts b/node_modules/react-native-hyperlink/index.d.ts index 135e70b..b2abf33 100644 --- a/node_modules/react-native-hyperlink/index.d.ts +++ b/node_modules/react-native-hyperlink/index.d.ts @@ -1,7 +1,7 @@ import { Component } from 'react'; import { StyleProp, TextStyle } from 'react-native'; -interface Props { + interface Props { linkDefault?: boolean; linkify?: object; linkStyle?: StyleProp<TextStyle>; @@ -13,3 +13,4 @@ interface Props { declare class HyperLink extends Component<Props> {} export default HyperLink; +export { Props as HyperLinkProps };
This issue body was partially generated by patch-package.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
react-native-hyperlink@0.0.19
for the project I'm working on.in some cases we need to export the
Props
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.