# shubham-shakywar/gitprojects architecture

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

- Interactive diagram: https://gitdiagram.com/shubham-shakywar/gitprojects
- Repository: https://github.com/shubham-shakywar/gitprojects

## Overview

##### Project type and purpose
- This is a React Native mobile application (iOS & Android) that showcases multiple navigation strategies (stack, drawer, bottom tabs, top tabs, “normal” flows) and state-management options (Context API, Redux).
- It is bootstrapped with the React Native CLI, using Metro for bundling, CocoaPods on iOS, and Gradle on Android.

##### File structure
- Top‐level:
- App.tsx / index.js – the JS entry points
- android/ – Android native project (Gradle, Java/Kotlin code, resources)
- ios/ – iOS native project (Xcode workspace, Swift/Obj-C, assets, Podfile)
- redux_structure/ – Redux store, actions, reducers, themed components
- src_context/ – Context API examples (dark theme, navigation)
- src_allnavigation/ – React Navigation patterns (stack, drawer, bottom, top)
- assets/ – shared images, manifest.json
- config: babel.config.js, metro.config.js, jest.config.js, tsconfig.json
- testing: __tests__/
- The structure implies a pure front-end mobile client, modularized by navigation and state slices, with native wrappers for each platform.

##### README
- Confirms React Native dev workflow: Metro bundler → npm/yarn scripts → native build via Gradle/Xcode/CocoaPods.
- No backend or external API described, so focus is on client-side architecture.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Developer and Tooling
    DevMachine["Developer Machine"]:::devtools
    MetroBundler["Metro Bundler"]:::devtools
    DevMachine -->|"runs"| MetroBundler

    %% JavaScript Layer
    subgraph "JavaScript Layer"
        direction TB
        EntryIndex["index.js"]:::js
        EntryApp["App.tsx"]:::js
        click EntryIndex "https://github.com/shubham-shakywar/gitprojects/blob/main/index.js"
        click EntryApp "https://github.com/shubham-shakywar/gitprojects/blob/main/App.tsx"
        EntryIndex --> EntryApp

        subgraph "Navigation Modules"
            direction TB
            subgraph "Root Navigator"
                AppNav["App.tsx"]:::js
                RootNav["appNavigator.tsx"]:::js
                click AppNav "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/App.tsx"
                click RootNav "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/appNavigator.tsx"
            end
            subgraph "Stack Navigation"
                StackContainer["StackContainer.tsx"]:::js
                StackA["Acomponenet.tsx"]:::js
                StackB["Bcomponenet.tsx"]:::js
                click StackContainer "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/stackNavigation/StackContainer.tsx"
                click StackA "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/stackNavigation/Acomponenet.tsx"
                click StackB "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/stackNavigation/Bcomponenet.tsx"
            end
            subgraph "Drawer Navigation"
                DrawerContainer["DrawerContainer.tsx"]:::js
                DrawerHome["home.tsx"]:::js
                DrawerSettings["Settings.tsx"]:::js
                click DrawerContainer "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/drawerNavigator/DrawerContainer.tsx"
                click DrawerHome "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/drawerNavigator/home.tsx"
                click DrawerSettings "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/drawerNavigator/Settings.tsx"
            end
            subgraph "Bottom Tabs Navigation"
                BottomContainer["BottomStackConatiner.tsx"]:::js
                BottomOne["OneBottomComponent.tsx"]:::js
                BottomTwo["TwoBottomComponent.tsx"]:::js
                BottomFilter["filter.tsx"]:::js
                click BottomContainer "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/bottomNavigation/BottomStackConatiner.tsx"
                click BottomOne "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/bottomNavigation/OneBottomComponent.tsx"
                click BottomTwo "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/bottomNavigation/TwoBottomComponent.tsx"
                click BottomFilter "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/bottomNavigation/component/filter.tsx"
            end
            subgraph "Top Tabs Navigation"
                TopContainer["TopStackContainer.tsx"]:::js
                TopFirst["FirstTop.tsx"]:::js
                TopSecond["SecondTop.tsx"]:::js
                click TopContainer "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/topNavigation/TopStackContainer.tsx"
                click TopFirst "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/topNavigation/FirstTop.tsx"
                click TopSecond "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/topNavigation/SecondTop.tsx"
            end
            subgraph "Normal Flow"
                Splash["splash.tsx"]:::js
                ParentFlow["parent.tsx"]:::js
                click Splash "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/normal/splash.tsx"
                click ParentFlow "https://github.com/shubham-shakywar/gitprojects/blob/main/src_allnavigation/normal/parent.tsx"
            end
            subgraph "Navigation Assets"
                NavAssets["images/*"]:::js
                click NavAssets "https://github.com/shubham-shakywar/gitprojects/tree/main/src_allnavigation/assets/image/*"
            end
        end

        subgraph "State Management"
            direction TB
            subgraph "Redux"
                ReduxStore["store.tsx"]:::js
                RootReducer["rootReduer.tsx"]:::js
                Reducer["reducer.tsx"]:::js
                Action["action.tsx"]:::js
                ThemeComp["themeComponenet.tsx"]:::js
                ReduxApp["app.tsx"]:::js
                click ReduxStore "https://github.com/shubham-shakywar/gitprojects/blob/main/redux_structure/store.tsx"
                click RootReducer "https://github.com/shubham-shakywar/gitprojects/blob/main/redux_structure/rootReduer.tsx"
                click Reducer "https://github.com/shubham-shakywar/gitprojects/blob/main/redux_structure/reducer.tsx"
                click Action "https://github.com/shubham-shakywar/gitprojects/blob/main/redux_structure/action.tsx"
                click ThemeComp "https://github.com/shubham-shakywar/gitprojects/blob/main/redux_structure/themeComponenet.tsx"
                click ReduxApp "https://github.com/shubham-shakywar/gitprojects/blob/main/redux_structure/app.tsx"
            end
            subgraph "Context API"
                ContextApp["App.tsx"]:::js
                AComp["Acomponent.tsx"]:::js
                BComp["Bcomponent.tsx"]:::js
                DarkTheme["darkTheme.tsx"]:::js
                StackNavContext["stack_navigation.tsx"]:::js
                click ContextApp "https://github.com/shubham-shakywar/gitprojects/blob/main/src_context/App.tsx"
                click AComp "https://github.com/shubham-shakywar/gitprojects/blob/main/src_context/Acomponent.tsx"
                click BComp "https://github.com/shubham-shakywar/gitprojects/blob/main/src_context/Bcomponent.tsx"
                click DarkTheme "https://github.com/shubham-shakywar/gitprojects/blob/main/src_context/darkTheme.tsx"
                click StackNavContext "https://github.com/shubham-shakywar/gitprojects/blob/main/src_context/stack_navigation.tsx"
            end
        end

        Presentation["Shared Assets & Presentation\nmanifest.json"]:::js
        click Presentation "https://github.com/shubham-shakywar/gitprojects/blob/main/assets/manifest.json"

        EntryApp --> AppNav
        EntryApp --> ReduxStore
        EntryApp --> ContextApp
        EntryApp --> Presentation
    end

    %% JS Engine and Bridge
    MetroBundler -->|"bundles JS"| JSEngine["JS Engine\n(Hermes/JSC)"]:::js
    JSEngine -->|"executes"| RNBridge["React Native Bridge"]:::js
    JSEngine -->|uses| babelConfig["babel.config.js"]:::js
    JSEngine -->|uses| metroConfig["metro.config.js"]:::js
    JSEngine -->|uses| tsconfig["tsconfig.json"]:::js
    JSEngine -->|uses| jestConfig["jest.config.js"]:::js
    click babelConfig "https://github.com/shubham-shakywar/gitprojects/blob/main/babel.config.js"
    click metroConfig "https://github.com/shubham-shakywar/gitprojects/blob/main/metro.config.js"
    click tsconfig "https://github.com/shubham-shakywar/gitprojects/blob/main/tsconfig.json"
    click jestConfig "https://github.com/shubham-shakywar/gitprojects/blob/main/jest.config.js"

    %% Native Layers
    RNBridge -->|"renders"| AndroidNative["Android Layer"]:::native
    RNBridge -->|"renders"| iOSNative["iOS Layer"]:::native

    subgraph "Android Native"
        direction TB
        MainActivity["MainActivity.kt"]:::native
        MainApplication["MainApplication.kt"]:::native
        GradleBuild["build.gradle"]:::native
        AndroidRes["res/*"]:::native
        click MainActivity "https://github.com/shubham-shakywar/gitprojects/blob/main/android/app/src/main/java/com/gitproject/MainActivity.kt"
        click MainApplication "https://github.com/shubham-shakywar/gitprojects/blob/main/android/app/src/main/java/com/gitproject/MainApplication.kt"
        click GradleBuild "https://github.com/shubham-shakywar/gitprojects/blob/main/android/app/build.gradle"
        click AndroidRes "https://github.com/shubham-shakywar/gitprojects/tree/main/android/app/src/main/res/*"
    end

    subgraph "iOS Native"
        direction TB
        AppDelegate["AppDelegate.swift"]:::native
        Podfile["Podfile"]:::native
        XcodeProj["GitProject.xcodeproj/*"]:::native
        ImagesAssets["Images.xcassets/*"]:::native
        ColorsAssets["Colors.xcassets/*"]:::native
        click AppDelegate "https://github.com/shubham-shakywar/gitprojects/blob/main/ios/GitProject/AppDelegate.swift"
        click Podfile "https://github.com/shubham-shakywar/gitprojects/tree/main/ios/Podfile"
        click XcodeProj "https://github.com/shubham-shakywar/gitprojects/tree/main/ios/GitProject.xcodeproj/*"
        click ImagesAssets "https://github.com/shubham-shakywar/gitprojects/tree/main/ios/GitProject/Images.xcassets/*"
        click ColorsAssets "https://github.com/shubham-shakywar/gitprojects/tree/main/ios/GitProject/Colors.xcassets/*"
    end

    %% Testing
    JestRunner["Jest Test Runner"]:::test
    Jest["App.test.tsx"]:::test
    click Jest "https://github.com/shubham-shakywar/gitprojects/blob/main/ __tests__/App.test.tsx"
    JestRunner --> Jest
    Jest --> JSEngine

    %% Styles
    classDef devtools fill:#FFD580,stroke:#333,stroke-width:1px
    classDef js fill:#ADD8E6,stroke:#333,stroke-width:1px
    classDef native fill:#D3D3D3,stroke:#333,stroke-width:1px
    classDef test fill:#FFD580,stroke:#333,stroke-width:1px
```
