343max / link-metadata

React Native Module to access the iOS LPLinkMetadata API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LPMetadataProvider for react native

Since iOS 13 iOS provides a an API to gether metadata about webpages. This provides this API to React Native Apps.

Usage

import {fetchURLPreview, LinkMetadata} from 'react-native-link-metadata'

const {url, originalUrl, title, imageURL, iconURL} = await fetchURLPreview("https://de.wikipedia.org/wiki/Vulcanodon")

Known Issues

I haven't tested these on Android or iOS versions prior to 13.0.

No idea what will happen you you run it on these, probably your App will crash.

About

React Native Module to access the iOS LPLinkMetadata API

License:MIT License


Languages

Language:JavaScript 52.3%Language:Kotlin 20.5%Language:Swift 13.7%Language:TypeScript 5.6%Language:Ruby 4.1%Language:Starlark 2.0%Language:Objective-C 1.7%