- React Native Blueprints
- Emilio Rodriguez Martinez
- 255字
- 2021-07-02 15:20:01
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 to note that besides this actions.js file, we need a store.js file to contain the state structure and methods to modify it.
Finally, and as it is normal in most of the React Native projects, we will need an index.js file (already created by React Native's CLI) and a main.js file to serve as an entry point for our app's components tree.
All these files will be organized inside src/ and src/screens/ folders, as follows:

- Mastering ElasticSearch
- Google系統架構解密:構建安全可靠的系統
- 無蘋果不生活 OS X Mountain Lion隨身寶典
- SOA實踐者說
- 嵌入式操作系統(Linux篇)(微課版)
- 計算機系統開發與優化實戰
- Windows Vista融會貫通
- 奔跑吧 Linux內核(入門篇)
- Ceph分布式存儲實戰
- Linux內核設計的藝術:圖解Linux操作系統架構設計與實現原理
- Django Project Blueprints
- Windows 7實戰從入門到精通(超值版)
- Linux網絡操作系統項目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- 大規模分布式系統架構與設計實戰
- 15分鐘!畫出我的漫畫角色:賣萌篇