Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-preview-link

ahmedrashraf86ISC8.0.0

transform the url to a beautiful link preview

react-native, previewlink, preview link, react native preview link, react native url preview, preview

readme

What is this?

transform the url to a beautiful link preview card

Installation

npm install --save link-preview-js react-native-preview-link deprecated-react-native-prop-types

OR

yarn add link-preview-js react-native-preview-link deprecated-react-native-prop-types

Then...

import RNUrlPreview from "react-native-preview-link";

<RNUrlPreview text={"any random text, https://www.youtube.com/watch?v=Kmiw4FYTg2U"} />

Done 🥳

Options

Parses text and wraps URLs , transform the url to a link preview

  • text - text | url