@kyonru/react-native-rss-parser
v0.2.0
Published
React Native compatible package to parse RSS feeds
Downloads
3
Readme
@kyonru/react-native-rss-parser
React Native compatible package to parse RSS feeds
Installation
npm install @kyonru/react-native-rss-parser
Usage
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;
};
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
Based on jameslawler/react-native-rss-parser