# onlyaditya/mobile_app_dev architecture

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

- Interactive diagram: https://gitdiagram.com/onlyaditya/mobile_app_dev
- Repository: https://github.com/onlyaditya/mobile_app_dev

## Overview

This repository contains two small React Native chat-app iterations: an initial chat list and a later navigation-oriented version with a conversation screen. The main workflow is opening the app, viewing sample chats, and—in the later version—attempting to select a chat and view its messages. The later list’s selection handler is referenced but not defined in the excerpt, and the navigator does not show chat parameters being passed to the conversation screen. The graph reflects only evidenced wiring; both versions use local JSON data, with no demonstrated backend.

Main entry points: [`React_native-01/chat_app/App.js`](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/App.js) (App state), [`React_nativ-02/chat_app/App.js`](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/App.js) (Navigation app), [`React_nativ-02/chat_app/screens/ChatList.jsx`](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/screens/ChatList.jsx) (Chat list), [`React_native-01/chat_app/index.js`](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/index.js) (Expo entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_initial["Initial chat list"]
  node_initial_entry["Expo entry<br/>[index.js]"]
  node_initial_app["App state<br/>[App.js]"]
  node_initial_data["Sample chats<br/>[chats.json]"]
  node_initial_list["Chat list<br/>[ChatList.jsx]"]
  node_initial_item["Chat preview<br/>[ChatItem.jsx]"]
end

subgraph group_navigation["Navigation revision"]
  node_nav_entry["Expo entry<br/>[index.js]"]
  node_nav_app["Navigation app<br/>[App.js]"]
  node_nav_data["Sample chats<br/>[chats.json]"]
  node_nav_list["Chat list<br/>[ChatList.jsx]"]
  node_nav_item["Chat preview<br/>[ChatItem.jsx]"]
  node_conversation["Conversation view<br/>[IndividualChat.jsx]"]
end

node_user(("App user"))

node_user -.->|"opens"| node_initial_entry
node_initial_entry -->|"registers"| node_initial_app
node_initial_app -->|"loads"| node_initial_data
node_initial_app -->|"renders"| node_initial_list
node_initial_list -->|"renders"| node_initial_item
node_user -.->|"opens"| node_nav_entry
node_nav_entry -->|"registers"| node_nav_app
node_nav_app -->|"registers screen"| node_nav_list
node_nav_app -->|"registers screen"| node_conversation
node_nav_list -->|"loads"| node_nav_data
node_nav_list -->|"renders"| node_nav_item

click node_initial_entry "https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/index.js"
click node_initial_app "https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/App.js"
click node_initial_data "https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/data/chats.json"
click node_initial_list "https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/components/ChatList.jsx"
click node_initial_item "https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/components/ChatItem.jsx"
click node_nav_entry "https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/index.js"
click node_nav_app "https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/App.js"
click node_nav_data "https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/data/chats.json"
click node_nav_list "https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/screens/ChatList.jsx"
click node_nav_item "https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/components/ChatItem.jsx"
click node_conversation "https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/screens/IndividualChat.jsx"

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_initial_entry,node_initial_app,node_initial_data,node_initial_list,node_initial_item,node_user toneBlue
class node_nav_entry,node_nav_app,node_nav_data,node_nav_list,node_nav_item,node_conversation toneAmber
```

## Components

### Initial chat list

- [Expo entry](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/index.js): `React_native-01/chat_app/index.js`
- [App state](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/App.js): `React_native-01/chat_app/App.js`
- [Sample chats](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/data/chats.json): `React_native-01/chat_app/data/chats.json`
- [Chat list](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/components/ChatList.jsx): `React_native-01/chat_app/components/ChatList.jsx`
- [Chat preview](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_native-01/chat_app/components/ChatItem.jsx): `React_native-01/chat_app/components/ChatItem.jsx`

### Navigation revision

- [Expo entry](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/index.js): `React_nativ-02/chat_app/index.js`
- [Navigation app](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/App.js): `React_nativ-02/chat_app/App.js`
- [Sample chats](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/data/chats.json): `React_nativ-02/chat_app/data/chats.json`
- [Chat list](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/screens/ChatList.jsx): `React_nativ-02/chat_app/screens/ChatList.jsx`
- [Chat preview](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/components/ChatItem.jsx): `React_nativ-02/chat_app/components/ChatItem.jsx`
- [Conversation view](https://github.com/onlyaditya/mobile_app_dev/blob/main/React_nativ-02/chat_app/screens/IndividualChat.jsx): `React_nativ-02/chat_app/screens/IndividualChat.jsx`

### Other components

- **App user**

## Connections

- App user → Expo entry: opens
- Expo entry → App state: registers (evidence: `React_native-01/chat_app/index.js`)
- App state → Sample chats: loads (evidence: `React_native-01/chat_app/App.js`)
- App state → Chat list: renders (evidence: `React_native-01/chat_app/App.js`)
- Chat list → Chat preview: renders (evidence: `React_native-01/chat_app/components/ChatList.jsx`)
- App user → Expo entry: opens
- Expo entry → Navigation app: registers (evidence: `React_nativ-02/chat_app/index.js`)
- Navigation app → Chat list: registers screen (evidence: `React_nativ-02/chat_app/App.js`)
- Navigation app → Conversation view: registers screen (evidence: `React_nativ-02/chat_app/App.js`)
- Chat list → Sample chats: loads (evidence: `React_nativ-02/chat_app/screens/ChatList.jsx`)
- Chat list → Chat preview: renders (evidence: `React_nativ-02/chat_app/screens/ChatList.jsx`)
