# alex170485/react-native_app_with_navigation architecture

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

- Interactive diagram: https://gitdiagram.com/alex170485/react-native_app_with_navigation
- Repository: https://github.com/alex170485/react-native_app_with_navigation

## Overview

This is a React Native blog app: users browse posts, open a post to bookmark or delete it, and create posts from a text-entry screen. Post data is held in Redux state, initialized from a small in-repository sample dataset; the app also provides a booked-posts view and an About screen. The graph follows the shown imports, dispatches, and navigation configuration. About and Booked screen internals, bootstrap behavior, and Redux wiring are not shown in excerpts, so their detailed behavior is not inferred.

Main entry points: [`src/navigation/AppNavigation.js`](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/navigation/AppNavigation.js) (Navigation), [`src/Screen/MainScreen.js`](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/Screen/MainScreen.js) (All posts), [`src/store/action/postActions.js`](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/store/action/postActions.js) (Post actions), [`src/components/AppHeaderIcon.js`](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/components/AppHeaderIcon.js) (Header icon)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_app["App entry<br/>[App.js]"]
  node_bootstrap["Bootstrap<br/>[bootstrap.js]"]
  node_navigation["Navigation<br/>[AppNavigation.js]"]
end

subgraph group_screens["Blog screens"]
  node_main["All posts<br/>[MainScreen.js]"]
  node_booked["Booked posts<br/>[BookedScreen.js]"]
  node_detail["Post detail<br/>[PostScreen.js]"]
  node_create["Create post<br/>[CreateScreen.js]"]
  node_about["About<br/>[AboutScreen.js]"]
end

subgraph group_ui["Post presentation"]
  node_list["Post list<br/>[PostList.js]"]
  node_post["Post card<br/>[Post.js]"]
  node_header["Header icon<br/>[AppHeaderIcon.js]"]
end

subgraph group_state["Post state"]
  node_actions["Post actions<br/>[postActions.js]"]
  node_reducer["Post reducer<br/>[postReducer.js]"]
  node_store[("Redux store<br/>[index.js]")]
  node_data["Sample posts<br/>[data.js]"]
end

node_user(("App user"))

node_user -->|"opens"| node_app
node_app -->|"imports"| node_bootstrap
node_app -->|"renders"| node_navigation
node_app -->|"provides"| node_store
node_navigation -->|"routes to"| node_main
node_navigation -->|"routes to"| node_booked
node_navigation -->|"routes to"| node_detail
node_navigation -->|"routes to"| node_create
node_navigation -->|"routes to"| node_about
node_main -->|"renders"| node_list
node_list -->|"renders"| node_post
node_main -->|"opens"| node_detail
node_main -->|"dispatches load"| node_actions
node_actions -->|"loads sample"| node_data
node_detail -->|"dispatches changes"| node_actions
node_create -->|"dispatches add"| node_actions
node_store -->|"uses reducer"| node_reducer
node_actions -.->|"produces actions"| node_reducer
node_booked -->|"uses list"| node_list
node_booked -->|"uses card"| node_post
node_main -->|"configures header"| node_header
node_detail -->|"configures header"| node_header
node_create -->|"configures header"| node_header
node_booked -->|"uses header"| node_header
node_about -->|"uses header"| node_header

click node_app "https://github.com/alex170485/react-native_app_with_navigation/blob/main/App.js"
click node_bootstrap "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/bootstrap.js"
click node_navigation "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/navigation/AppNavigation.js"
click node_main "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/Screen/MainScreen.js"
click node_booked "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/Screen/BookedScreen.js"
click node_detail "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/Screen/PostScreen.js"
click node_create "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/Screen/CreateScreen.js"
click node_about "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/Screen/AboutScreen.js"
click node_list "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/components/PostList.js"
click node_post "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/components/Post.js"
click node_header "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/components/AppHeaderIcon.js"
click node_actions "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/store/action/postActions.js"
click node_reducer "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/store/reducers/postReducer.js"
click node_store "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/store/index.js"
click node_data "https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/data.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_app,node_bootstrap,node_navigation,node_user toneBlue
class node_main,node_booked,node_detail,node_create,node_about toneAmber
class node_list,node_post,node_header toneMint
class node_actions,node_reducer,node_store,node_data toneRose
```

## Components

### App and navigation

- [App entry](https://github.com/alex170485/react-native_app_with_navigation/blob/main/App.js): `App.js`
- [Bootstrap](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/bootstrap.js): `src/bootstrap.js`
- [Navigation](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/navigation/AppNavigation.js): `src/navigation/AppNavigation.js`

### Blog screens

- [All posts](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/Screen/MainScreen.js): `src/Screen/MainScreen.js`
- [Booked posts](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/Screen/BookedScreen.js): `src/Screen/BookedScreen.js`
- [Post detail](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/Screen/PostScreen.js): `src/Screen/PostScreen.js`
- [Create post](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/Screen/CreateScreen.js): `src/Screen/CreateScreen.js`
- [About](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/Screen/AboutScreen.js): `src/Screen/AboutScreen.js`

### Post presentation

- [Post list](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/components/PostList.js): `src/components/PostList.js`
- [Post card](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/components/Post.js): `src/components/Post.js`
- [Header icon](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/components/AppHeaderIcon.js): `src/components/AppHeaderIcon.js`

### Post state

- [Post actions](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/store/action/postActions.js): `src/store/action/postActions.js`
- [Post reducer](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/store/reducers/postReducer.js): `src/store/reducers/postReducer.js`
- [Redux store](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/store/index.js): `src/store/index.js`
- [Sample posts](https://github.com/alex170485/react-native_app_with_navigation/blob/main/src/data.js): `src/data.js`

### Other components

- **App user**

## Connections

- App user → App entry: opens
- App entry → Bootstrap: imports (evidence: `App.js`)
- App entry → Navigation: renders (evidence: `App.js`)
- App entry → Redux store: provides (evidence: `App.js`)
- Navigation → All posts: routes to (evidence: `src/navigation/AppNavigation.js`)
- Navigation → Booked posts: routes to (evidence: `src/navigation/AppNavigation.js`)
- Navigation → Post detail: routes to (evidence: `src/navigation/AppNavigation.js`)
- Navigation → Create post: routes to (evidence: `src/navigation/AppNavigation.js`)
- Navigation → About: routes to (evidence: `src/navigation/AppNavigation.js`)
- All posts → Post list: renders (evidence: `src/Screen/MainScreen.js`)
- Post list → Post card: renders (evidence: `src/components/PostList.js`)
- All posts → Post detail: opens (evidence: `src/Screen/MainScreen.js`)
- All posts → Post actions: dispatches load (evidence: `src/Screen/MainScreen.js`)
- Post actions → Sample posts: loads sample (evidence: `src/store/action/postActions.js`)
- Post detail → Post actions: dispatches changes (evidence: `src/Screen/PostScreen.js`)
- Create post → Post actions: dispatches add (evidence: `src/Screen/CreateScreen.js`)
- Redux store → Post reducer: uses reducer (evidence: `src/store/index.js`)
- Post actions → Post reducer: produces actions
- Booked posts → Post list: uses list (evidence: `src/Screen/BookedScreen.js`)
- Booked posts → Post card: uses card (evidence: `src/Screen/BookedScreen.js`)
- All posts → Header icon: configures header (evidence: `src/Screen/MainScreen.js`)
- Post detail → Header icon: configures header (evidence: `src/Screen/PostScreen.js`)
- Create post → Header icon: configures header (evidence: `src/Screen/CreateScreen.js`)
- Booked posts → Header icon: uses header (evidence: `src/Screen/BookedScreen.js`)
- About → Header icon: uses header (evidence: `src/Screen/AboutScreen.js`)
