# flatlogic/react-native-starter architecture

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

- Interactive diagram: https://gitdiagram.com/flatlogic/react-native-starter
- Repository: https://github.com/flatlogic/react-native-starter

## Overview

React Native Starter is a modular mobile-app template and component showcase. A user enters the app, which provides Redux state and persisted startup before rendering the app shell; navigation exposes screens for authentication, profile, calendar, chat, blog, gallery, charts, and reusable UI examples. The README also advertises six color themes, represented here by the theme source directory. Several screen implementations and navigation details were not sampled, so links are limited to relationships shown in the excerpts, source index, or README; no analytics implementation was identifiable in the supplied tree.

Main entry points: [`src/modules/navigation/stackNavigationData.js`](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/navigation/stackNavigationData.js) (Stack navigation), [`src/redux/reducer.js`](https://github.com/flatlogic/react-native-starter/blob/master/src/redux/reducer.js) (Feature reducers), [`App.js`](https://github.com/flatlogic/react-native-starter/blob/master/App.js) (App entry), [`src/redux/store.js`](https://github.com/flatlogic/react-native-starter/blob/master/src/redux/store.js) (Persisted Redux store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App foundation"]
  node_app["App entry<br/>[App.js]"]
  node_store[("Persisted Redux store<br/>[store.js]")]
  node_reducers["Feature reducers<br/>[reducer.js]"]
  node_shell["App shell"]
end

subgraph group_navigation["Screens and navigation"]
  node_navigation["Stack navigation"]
end

subgraph group_features["Product features"]
  node_auth["Authentication screens<br/>[AuthView.js]"]
  node_profile["User profile<br/>[ProfileView.js]"]
  node_calendar["Calendar<br/>[CalendarView.js]"]
  node_calendar_state["Calendar state<br/>[CalendarState.js]"]
  node_charts["Charts and analytics<br/>[ChartsView.js]"]
  node_charts_state["Charts state<br/>[ChartsState.js]"]
  node_chat["Chat and messages<br/>[MessagesScreen.js]"]
  node_chat_state["Chat state<br/>[ChatState.js]"]
  node_blog["Blog and posts<br/>[BlogView.js]"]
  node_posts_state["Posts state<br/>[PostsState.js]"]
  node_gallery["Gallery<br/>[GalleryView.js]"]
  node_gallery_state["Gallery state<br/>[GalleryState.js]"]
  node_article["Article detail<br/>[ArticleView.js]"]
end

subgraph group_ui["UI and themes"]
  node_components_showcase["Component showcase<br/>[ComponentsView.js]"]
  node_components["Reusable controls<br/>[index.js]"]
  node_styles["Shared styles<br/>[index.js]"]
  node_themes["Color themes"]
end

node_user(("Mobile user"))

node_user -->|"opens"| node_app
node_app -->|"provides state"| node_store
node_app -->|"renders"| node_shell
node_store -->|"persists"| node_reducers
node_reducers -->|"combines"| node_calendar_state
node_reducers -->|"combines"| node_charts_state
node_reducers -->|"combines"| node_chat_state
node_reducers -->|"combines"| node_posts_state
node_reducers -->|"combines"| node_gallery_state
node_shell -.->|"routes screens"| node_navigation
node_navigation -->|"registers"| node_auth
node_navigation -->|"registers"| node_profile
node_navigation -.->|"registers"| node_calendar
node_navigation -->|"registers"| node_charts
node_navigation -->|"registers"| node_chat
node_navigation -->|"registers"| node_blog
node_navigation -->|"registers"| node_gallery
node_navigation -->|"registers"| node_article
node_navigation -->|"registers examples"| node_components_showcase
node_components_showcase -.->|"uses controls"| node_components
node_components -->|"uses styles"| node_styles
node_themes -.->|"provides palettes"| node_styles

click node_app "https://github.com/flatlogic/react-native-starter/blob/master/App.js"
click node_store "https://github.com/flatlogic/react-native-starter/blob/master/src/redux/store.js"
click node_reducers "https://github.com/flatlogic/react-native-starter/blob/master/src/redux/reducer.js"
click node_shell "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/AppViewContainer.js"
click node_navigation "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/navigation/stackNavigationData.js"
click node_auth "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/auth/AuthView.js"
click node_profile "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/profile/ProfileView.js"
click node_calendar "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/calendar/CalendarView.js"
click node_calendar_state "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/calendar/CalendarState.js"
click node_charts "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/charts/ChartsView.js"
click node_charts_state "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/charts/ChartsState.js"
click node_chat "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/chat/messages/MessagesScreen.js"
click node_chat_state "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/chat/ChatState.js"
click node_blog "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/blog/BlogView.js"
click node_posts_state "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/blog/PostsState.js"
click node_gallery "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/gallery/GalleryView.js"
click node_gallery_state "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/gallery/GalleryState.js"
click node_article "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/article/ArticleView.js"
click node_components_showcase "https://github.com/flatlogic/react-native-starter/blob/master/src/modules/components/ComponentsView.js"
click node_components "https://github.com/flatlogic/react-native-starter/blob/master/src/components/index.js"
click node_styles "https://github.com/flatlogic/react-native-starter/blob/master/src/styles/index.js"
click node_themes "https://github.com/flatlogic/react-native-starter/tree/master/src/themes"

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_store,node_reducers,node_shell,node_user toneBlue
class node_navigation toneAmber
class node_auth,node_profile,node_calendar,node_calendar_state,node_charts,node_charts_state,node_chat,node_chat_state,node_blog,node_posts_state,node_gallery,node_gallery_state,node_article toneMint
class node_components_showcase,node_components,node_styles,node_themes toneRose
```

## Components

### App foundation

- [App entry](https://github.com/flatlogic/react-native-starter/blob/master/App.js): `App.js`
- [Persisted Redux store](https://github.com/flatlogic/react-native-starter/blob/master/src/redux/store.js): `src/redux/store.js`
- [Feature reducers](https://github.com/flatlogic/react-native-starter/blob/master/src/redux/reducer.js): `src/redux/reducer.js`
- [App shell](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/AppViewContainer.js): `src/modules/AppViewContainer.js`

### Screens and navigation

- [Stack navigation](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/navigation/stackNavigationData.js): `src/modules/navigation/stackNavigationData.js`

### Product features

- [Authentication screens](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/auth/AuthView.js): `src/modules/auth/AuthView.js`
- [User profile](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/profile/ProfileView.js): `src/modules/profile/ProfileView.js`
- [Calendar](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/calendar/CalendarView.js): `src/modules/calendar/CalendarView.js`
- [Calendar state](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/calendar/CalendarState.js): `src/modules/calendar/CalendarState.js`
- [Charts and analytics](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/charts/ChartsView.js): `src/modules/charts/ChartsView.js`
- [Charts state](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/charts/ChartsState.js): `src/modules/charts/ChartsState.js`
- [Chat and messages](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/chat/messages/MessagesScreen.js): `src/modules/chat/messages/MessagesScreen.js`
- [Chat state](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/chat/ChatState.js): `src/modules/chat/ChatState.js`
- [Blog and posts](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/blog/BlogView.js): `src/modules/blog/BlogView.js`
- [Posts state](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/blog/PostsState.js): `src/modules/blog/PostsState.js`
- [Gallery](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/gallery/GalleryView.js): `src/modules/gallery/GalleryView.js`
- [Gallery state](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/gallery/GalleryState.js): `src/modules/gallery/GalleryState.js`
- [Article detail](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/article/ArticleView.js): `src/modules/article/ArticleView.js`

### UI and themes

- [Component showcase](https://github.com/flatlogic/react-native-starter/blob/master/src/modules/components/ComponentsView.js): `src/modules/components/ComponentsView.js`
- [Reusable controls](https://github.com/flatlogic/react-native-starter/blob/master/src/components/index.js): `src/components/index.js`
- [Shared styles](https://github.com/flatlogic/react-native-starter/blob/master/src/styles/index.js): `src/styles/index.js`
- [Color themes](https://github.com/flatlogic/react-native-starter/tree/master/src/themes): `src/themes`

### Other components

- **Mobile user**

## Connections

- Mobile user → App entry: opens
- App entry → Persisted Redux store: provides state (evidence: `App.js`)
- App entry → App shell: renders (evidence: `App.js`)
- Persisted Redux store → Feature reducers: persists (evidence: `src/redux/store.js`)
- Feature reducers → Calendar state: combines (evidence: `src/redux/reducer.js`)
- Feature reducers → Charts state: combines (evidence: `src/redux/reducer.js`)
- Feature reducers → Chat state: combines (evidence: `src/redux/reducer.js`)
- Feature reducers → Posts state: combines (evidence: `src/redux/reducer.js`)
- Feature reducers → Gallery state: combines (evidence: `src/redux/reducer.js`)
- App shell → Stack navigation: routes screens
- Stack navigation → Authentication screens: registers (evidence: `src/modules/navigation/stackNavigationData.js`)
- Stack navigation → User profile: registers (evidence: `src/modules/navigation/stackNavigationData.js`)
- Stack navigation → Calendar: registers
- Stack navigation → Charts and analytics: registers (evidence: `src/modules/navigation/stackNavigationData.js`)
- Stack navigation → Chat and messages: registers (evidence: `src/modules/navigation/stackNavigationData.js`)
- Stack navigation → Blog and posts: registers (evidence: `src/modules/navigation/stackNavigationData.js`)
- Stack navigation → Gallery: registers (evidence: `src/modules/navigation/stackNavigationData.js`)
- Stack navigation → Article detail: registers (evidence: `src/modules/navigation/stackNavigationData.js`)
- Stack navigation → Component showcase: registers examples (evidence: `src/modules/navigation/stackNavigationData.js`)
- Component showcase → Reusable controls: uses controls
- Reusable controls → Shared styles: uses styles
- Color themes → Shared styles: provides palettes (evidence: `src/themes/dark/AuthView.js`)
