Setting up the folder structure
As we did in the first chapter, we need to initialize a new React Native project through React Native's CLI. This time, we will name our project RSSReader
:
react-native init --version="0.49.3" RSSReader
For this app, we will need a total of four screens:
FeedList
: This is a list containing the titles for the feeds which were added to the app sorted by the time they were added.AddFeed
: This is a simple form to allow the user to add a feed by sending its URL. We will here retrieve the feed details to finally add and save them in our app for later usage.FeedDetail
: This is a list containing the latest entries (retrieved before mounting the screen) belonging to the selected feed.EntryDetail
: This is a WebView showing the contents of the selected entry.
Besides the screens, we will include an actions.js
file containing all the user actions modifying the app's state. Although we will review how the state is managed in a later section, in detail, it's also important...