# iamvucms/react-native-facebook-clone architecture

> Architecture diagram of the GitHub repository iamvucms/react-native-facebook-clone, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iamvucms/react-native-facebook-clone
- Repository: https://github.com/iamvucms/react-native-facebook-clone

## Overview

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`](https://github.com/iamvucms/react-native-facebook-clone/blob/master/App.js) (Tab and stack shell), [`actions`](https://github.com/iamvucms/react-native-facebook-clone/tree/master/actions) (Feature actions), [`screens/Search/index.js`](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/Search/index.js) (Search), [`screens/WatchTab/index.js`](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/WatchTab/index.js) (Watch videos)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App navigation"]
  node_shell["Tab and stack shell<br/>[App.js]"]
end

subgraph group_social["Social features"]
  node_home["Home feed<br/>[Home.js]"]
  node_post["Post detail<br/>[PostDetail.js]"]
  node_posttools["Post tools<br/>[FullPostTool.js]"]
  node_groups["Groups<br/>[index.js]"]
  node_pages["Pages<br/>[index.js]"]
  node_profile["Profile<br/>[index.js]"]
  node_notifications["Notifications<br/>[index.js]"]
end

subgraph group_discovery["Discovery and commerce"]
  node_search["Search<br/>[index.js]"]
  node_marketplace["Marketplace search"]
  node_product["Product detail"]
  node_watch["Watch videos<br/>[index.js]"]
  node_videoitem["Video playback<br/>[index.js]"]
  node_videocontrol["Playback controls<br/>[VideoController.js]"]
end

subgraph group_state["State and data"]
  node_actions["Feature actions"]
  node_reducers["Redux state<br/>[index.js]"]
end

node_person(("Mobile user"))
node_backend[("JSON Server")]

node_person -->|"opens"| node_shell
node_shell -->|"routes to"| node_home
node_shell -->|"routes to"| node_groups
node_shell -->|"routes to"| node_watch
node_shell -->|"routes to"| node_profile
node_shell -->|"routes to"| node_notifications
node_shell -->|"registers"| node_post
node_shell -->|"registers"| node_pages
node_shell -->|"registers"| node_search
node_shell -->|"registers"| node_product
node_notifications -->|"dispatches fetch"| node_actions
node_search -->|"dispatches history"| node_actions
node_watch -->|"dispatches playback"| node_videocontrol
node_videocontrol -->|"dispatches status"| node_actions
node_reducers -.->|"handles action types"| node_actions
node_actions -.->|"requests data"| node_backend
node_watch -.->|"plays videos"| node_videoitem
node_person -.->|"creates posts"| node_posttools
node_search -.->|"searches listings"| node_marketplace

click node_shell "https://github.com/iamvucms/react-native-facebook-clone/blob/master/App.js"
click node_home "https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/Home.js"
click node_post "https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/PostDetail.js"
click node_posttools "https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/PostTools/FullPostTool.js"
click node_groups "https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/GroupTab/index.js"
click node_pages "https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/Pages/index.js"
click node_profile "https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/ProfileTab/index.js"
click node_notifications "https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/NotificationTab/index.js"
click node_search "https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/Search/index.js"
click node_marketplace "https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/Search/MarketplaceSearch.js"
click node_product "https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/ShortCutTab/MarketplaceProductDetail.js"
click node_watch "https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/WatchTab/index.js"
click node_videoitem "https://github.com/iamvucms/react-native-facebook-clone/blob/master/components/VideoPlayer/index.js"
click node_videocontrol "https://github.com/iamvucms/react-native-facebook-clone/blob/master/components/WatchList/VideoController.js"
click node_actions "https://github.com/iamvucms/react-native-facebook-clone/tree/master/actions"
click node_reducers "https://github.com/iamvucms/react-native-facebook-clone/blob/master/reducers/index.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_shell,node_person toneBlue
class node_home,node_post,node_posttools,node_groups,node_pages,node_profile,node_notifications,node_backend toneAmber
class node_search,node_marketplace,node_product,node_watch,node_videoitem,node_videocontrol toneMint
class node_actions,node_reducers toneRose
```

## Components

### App navigation

- [Tab and stack shell](https://github.com/iamvucms/react-native-facebook-clone/blob/master/App.js): `App.js`

### Social features

- [Home feed](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/Home.js): `screens/Home.js`
- [Post detail](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/PostDetail.js): `screens/PostDetail.js`
- [Post tools](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/PostTools/FullPostTool.js): `screens/PostTools/FullPostTool.js`
- [Groups](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/GroupTab/index.js): `screens/GroupTab/index.js`
- [Pages](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/Pages/index.js): `screens/Pages/index.js`
- [Profile](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/ProfileTab/index.js): `screens/ProfileTab/index.js`
- [Notifications](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/NotificationTab/index.js): `screens/NotificationTab/index.js`

### Discovery and commerce

- [Search](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/Search/index.js): `screens/Search/index.js`
- [Marketplace search](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/Search/MarketplaceSearch.js): `screens/Search/MarketplaceSearch.js`
- [Product detail](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/ShortCutTab/MarketplaceProductDetail.js): `screens/ShortCutTab/MarketplaceProductDetail.js`
- [Watch videos](https://github.com/iamvucms/react-native-facebook-clone/blob/master/screens/WatchTab/index.js): `screens/WatchTab/index.js`
- [Video playback](https://github.com/iamvucms/react-native-facebook-clone/blob/master/components/VideoPlayer/index.js): `components/VideoPlayer/index.js`
- [Playback controls](https://github.com/iamvucms/react-native-facebook-clone/blob/master/components/WatchList/VideoController.js): `components/WatchList/VideoController.js`

### State and data

- [Feature actions](https://github.com/iamvucms/react-native-facebook-clone/tree/master/actions): `actions`
- [Redux state](https://github.com/iamvucms/react-native-facebook-clone/blob/master/reducers/index.js): `reducers/index.js`

### Other components

- **Mobile user**
- **JSON Server**

## Connections

- Mobile user → Tab and stack shell: opens (evidence: `App.js`)
- Tab and stack shell → Home feed: routes to (evidence: `App.js`)
- Tab and stack shell → Groups: routes to (evidence: `App.js`)
- Tab and stack shell → Watch videos: routes to (evidence: `App.js`)
- Tab and stack shell → Profile: routes to (evidence: `App.js`)
- Tab and stack shell → Notifications: routes to (evidence: `App.js`)
- Tab and stack shell → Post detail: registers (evidence: `App.js`)
- Tab and stack shell → Pages: registers (evidence: `App.js`)
- Tab and stack shell → Search: registers (evidence: `App.js`)
- Tab and stack shell → Product detail: registers (evidence: `App.js`)
- Notifications → Feature actions: dispatches fetch (evidence: `screens/NotificationTab/index.js`)
- Search → Feature actions: dispatches history (evidence: `screens/Search/index.js`)
- Watch videos → Playback controls: dispatches playback (evidence: `screens/WatchTab/index.js`)
- Playback controls → Feature actions: dispatches status (evidence: `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
