React Native Preview URL

Introduction

Rich URL link previews for React Native — a tiny component, a hook, and a free hosted API.

react-native-preview-url turns any URL into a link preview card — title, description, image, favicon, site name — using one component or one hook.

What it ships

Try it

Live · same component, every platform
iOSAndroidWeb
react-native-preview-urltap the card to fire onPress

URL

Hit Enter or tap Preview to fetch.

Quick picks

Props

titleLines2

Last event

callback log
Waiting for input. Tap the preview card to fire onPress.

At a glance

import { LinkPreview } from 'react-native-preview-url';

export function Example() {
  return <LinkPreview url="https://github.com" />;
}

That's it. The card renders, the URL opens on tap (via React Native's Linking), the response is cached for five minutes.

Where to go next

On this page