Skip to content

Releases: azizbecha/react-native-preview-url

v0.4.4

27 Apr 21:04

Choose a tag to compare

What's Changed

  • feat(docs): scaffold fumadocs site with API reference by @azizbecha in #10

Full Changelog: v0.4.3...v0.4.4

v0.4.3

27 Apr 06:19
8aac4f2

Choose a tag to compare

What's Changed

  • chore: restructure monorepo to packages/ + pnpm 10 by @azizbecha in #9
  • fix(LinkPreview): avoid render loop on persistent errors (release 0.4.3) by @azizbecha in #11

Full Changelog: v0.4.2...v0.4.3

v0.4.2

26 Apr 12:12

Choose a tag to compare

Full Changelog: v0.4.1...v0.4.2

v0.4.1

26 Apr 05:06
648a901

Choose a tag to compare

What's Changed

  • ci: simplify release flow to bump-and-push by @azizbecha in #5
  • fix(ci): drop registry-url so npm publish uses OIDC by @azizbecha in #6
  • fix(ci): upgrade npm to 11+ for OIDC trusted publisher auth by @azizbecha in #7

Full Changelog: v0.4.0...v0.4.1

v0.4.0

25 Apr 22:11

Choose a tag to compare

What's Changed

  • harden: timeouts cache a11y by @azizbecha in #1
  • chore: migrate to oxc by @azizbecha in #2
  • fix(ci): unblock test --coverage and expo web export by @azizbecha in #3
  • ci: add tag-triggered release workflow with npm trusted publisher by @azizbecha in #4

Full Changelog: v0.3.0...v0.4.0

v0.1.0

10 Aug 19:28

Choose a tag to compare

πŸŽ‰ v1.0.0 β€” First Public Release

We’re excited to announce the first public release of react-native-preview-url πŸš€ β€” a React Native library for displaying rich link previews using our free open-source Link Preview API.

✨ Features

<LinkPreview /> Component β€” display link previews with customizable styles and layout.

useUrlPreview Hook β€” fetch and manage preview metadata easily in functional components.

Customizable UI with style overrides and behavior props.

Free API usage β€” no API key required.

πŸ“‹ Props

This release supports the following props for <LinkPreview />:

url (string, required) β€” The URL to preview.

timeout (number) β€” Request timeout in milliseconds, default is 3000.

onSuccess (function) β€” Callback when metadata is fetched successfully. Receives the metadata object.

onError (function) β€” Callback when an error occurs. Receives the error message.

onPress (function) β€” Press handler for the whole preview. Defaults to opening the fetched data.url.

containerStyle (ViewStyle) β€” Custom style for the main container.

imageStyle (ImageStyle) β€” Custom style for the preview image.

imageContainerStyle (ViewStyle) β€” Custom style for the image wrapper.

titleStyle (TextStyle) β€” Custom style for the title text.

descriptionStyle (TextStyle) β€” Custom style for the description text.

urlStyle (TextStyle) β€” Custom style for the displayed domain text.

titleLines (number) β€” Maximum number of lines for the title. Default: 2.

descriptionLines (number) β€” Maximum number of lines for the description. Default: 4.

showUrl (boolean) β€” Whether to display the domain under the description. Default: true.

hideImage (boolean) β€” Whether to hide the image preview entirely. Default: false.

loaderComponent (JSX element) β€” Custom loader component while fetching metadata. Defaults to .

imageComponent (React component) β€” Custom image component to render. Defaults to .

fallbackImage (ImageSourcePropType) β€” Fallback image URL to use if the preview image fails to load.