react-native-opengraph-parser is a package for React-Native applications that utilizes the Open Graph protocol to easily extract and parse metadata from web pages. This package is based on react-native-opengraph-kit and has been updated to support the latest version of React Native and TypeScript.
npm install @sleiv/react-native-opengraph-parser
or
yarn add @sleiv/react-native-opengraph-parser
import { OpenGraphParser } from '@sleiv/react-native-opengraph-parser';
// ...
OpenGraphParser.extractMeta('https://sleiv.net/')
.then((metadata) => {
console.log(metadata);
})
.catch((e) => {
console.error(e);
});
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library