react-native-preview-link
Advanced tools
Comparing version 4.0.0 to 5.0.0
19
index.js
@@ -1,5 +0,4 @@ | ||
import React from "react"; | ||
import { getLinkPreview } from "link-preview-js"; | ||
import PropTypes from "prop-types"; | ||
import { | ||
Text, | ||
View, | ||
Image, | ||
@@ -9,11 +8,13 @@ Linking, | ||
Dimensions, | ||
Text, | ||
TouchableOpacity, | ||
View, | ||
ViewPropTypes, | ||
} from "react-native"; | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import { getLinkPreview } from "link-preview-js"; | ||
import { ViewPropTypes } from "deprecated-react-native-prop-types"; | ||
const REGEX = /[-a-zA-Z0-9@:%\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%\+.~#?&//=]*)?/g; | ||
const REGEX = | ||
/[-a-zA-Z0-9@:%\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%\+.~#?&//=]*)?/g; | ||
const { width, height } = Dimensions.get("window"); | ||
const { width } = Dimensions.get("window"); | ||
@@ -296,2 +297,2 @@ export default class RNUrlPreview extends React.PureComponent { | ||
descriptionNumberOfLines: Text.propTypes.numberOfLines, | ||
}; | ||
}; |
{ | ||
"name": "react-native-preview-link", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "transform the url to a beautiful link preview", | ||
@@ -12,6 +12,9 @@ "main": "index.js", | ||
"previewlink", | ||
"preview link", | ||
"react native preview link", | ||
"react native url preview", | ||
"preview" | ||
], | ||
"author": "Ahmed Raza <ahmedr.0331@gmail.com> (http://example.com)", | ||
"author": "Ahmed Raza <ahmedr.0331@gmail.com> (http://github.com/ahmedrashraf)", | ||
"license": "ISC" | ||
} | ||
} |
@@ -27,2 +27,2 @@ # What is this? | ||
- _text_ - text | url | ||
- _text_ - text | url |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
285
7697
27