Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch react-native-url-preview@1.1.9 for the project I'm working on.

Here is the diff that solved my problem:
diff --git a/node_modules/react-native-url-preview/index.js b/node_modules/react-native-url-preview/index.js
index 3d596c9..c79ddbc 100644
--- a/node_modules/react-native-url-preview/index.js
+++ b/node_modules/react-native-url-preview/index.js
@@ -8,7 +8,8 @@ import {
Text,
TouchableOpacity,
View,
- ViewPropTypes
+ ViewStyle,
+ TextStyle
} from "react-native";
const REGEX = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/g;
@@ -248,14 +249,14 @@ RNUrlPreview.defaultProps = {
RNUrlPreview.propTypes = {
onLoad: PropTypes.func,
onError: PropTypes.func,
- text: PropTypes.string,
- containerStyle: ViewPropTypes.style,
- imageStyle: ViewPropTypes.style,
- faviconStyle: ViewPropTypes.style,
- textContainerStyle: ViewPropTypes.style,
+ text: TextStyle,
+ containerStyle: ViewStyle,
+ imageStyle: ViewStyle,
+ faviconStyle: ViewStyle,
+ textContainerStyle: ViewStyle,
title: PropTypes.bool,
- titleStyle: Text.propTypes.style,
- titleNumberOfLines: Text.propTypes.numberOfLines,
- descriptionStyle: Text.propTypes.style,
- descriptionNumberOfLines: Text.propTypes.numberOfLines
+ titleStyle: TextStyle,
+ titleNumberOfLines: PropTypes.number,
+ descriptionStyle: TextStyle,
+ descriptionNumberOfLines: PropTypes.number
};
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-url-preview@1.1.9for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.