Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-preview-link

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-preview-link - npm Package Compare versions

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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc