How iamvucms/react-native-facebook-clone works
FAKEBOOK is a React Native Facebook-style mobile client. Users enter through the tabbed app shell and browse social feeds, groups, profiles, notifications, search, pages, marketplace, and video; the tree also includes post creation and detail screens. Redux reducers hold feature state, while actions and a configurable JSON Server backend support data-oriented features. The app shell and several feature screens are evidenced in excerpts or the SOURCE INDEX; links among unsampled feature screens, actions, and reducers are omitted where their runtime calls are not shown.
Main entry points: App.js Tab and stack shell · actions Feature actions · Search/index.js Search · WatchTab/index.js Watch videos
Components 18
App navigation
- Tab and stack shell
App.js
Social features
- Home feed
screens/Home.js - Post detail
screens/PostDetail.js - Post tools
screens/PostTools/FullPostTool.js - Groups
screens/GroupTab/index.js - Pages
screens/Pages/index.js - Profile
screens/ProfileTab/index.js - Notifications
screens/NotificationTab/index.js
Discovery and commerce
- Search
screens/Search/index.js - Marketplace search
screens/Search/MarketplaceSearch.js - Product detail
screens/ShortCutTab/MarketplaceProductDetail.js - Watch videos
screens/WatchTab/index.js - Video playback
components/VideoPlayer/index.js - Playback controls
components/WatchList/VideoController.js
State and data
- Feature actions
actions - Redux state
reducers/index.js
Other components
- Mobile user
- JSON Server
Connections 19
- Mobile user → Tab and stack shell: opens
App.js - Tab and stack shell → Home feed: routes to
App.js - Tab and stack shell → Groups: routes to
App.js - Tab and stack shell → Watch videos: routes to
App.js - Tab and stack shell → Profile: routes to
App.js - Tab and stack shell → Notifications: routes to
App.js - Tab and stack shell → Post detail: registers
App.js - Tab and stack shell → Pages: registers
App.js - Tab and stack shell → Search: registers
App.js - Tab and stack shell → Product detail: registers
App.js - Notifications → Feature actions: dispatches fetch
screens/NotificationTab/index.js - Search → Feature actions: dispatches history
screens/Search/index.js - Watch videos → Playback controls: dispatches playback
screens/WatchTab/index.js - Playback controls → Feature actions: dispatches status
components/WatchList/VideoController.js - Redux state → Feature actions: handles action types
- Feature actions → JSON Server: requests data
- Watch videos → Video playback: plays videos
- Mobile user → Post tools: creates posts
- Search → Marketplace search: searches listings