React Native compatible package to parse RSS feeds
npm install @kyonru/react-native-rss-parserReact Native compatible package to parse RSS feeds
``sh`
npm install @kyonru/react-native-rss-parser
`js
import * as RssParser from '@kyonru/react-native-rss-parser';
export const getParsed = async (url: string) => {
const request = await fetch(url);
const response = await request.text();
const parsed = await RssParser.parse(response); // or parseToJson, which will parse the whole object ignoring specifications, might contain unnecessary data
return (parsed || {}) as RssParser.Rss;
};
``
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
---
Made with create-react-native-library
Based on jameslawler/react-native-rss-parser