# jsaurav0409/reactnative architecture

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

- Interactive diagram: https://gitdiagram.com/jsaurav0409/reactnative
- Repository: https://github.com/jsaurav0409/reactnative

## Overview

This repository is a collection of React Native learning projects, not one application. Its examples span small interactive utilities, reusable UI demonstrations, navigation and shopping screens, a music player, and Appwrite authentication. A typical workflow begins in each project’s app entry point and either renders a focused interaction or selects screens and components; the music and authentication examples also include service layers. The graph focuses on these product behaviors and omits native scaffolding and tooling. Relationships are limited to imports or calls visible in the supplied excerpts and SOURCE INDEX; unsampled implementations are represented only where the tree supports them.

Main entry points: [`Project02/App.tsx`](https://github.com/jsaurav0409/reactnative/blob/main/Project02/App.tsx) (Card and Contact Demo), [`MusicPlayer08/src/screens/MusicPlayer.tsx`](https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/screens/MusicPlayer.tsx) (Player Screen), [`appwriteAuth11/src/routes/Router.tsx`](https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/routes/Router.tsx) (Session Router), [`Shopping10/src/screens/Home.tsx`](https://github.com/jsaurav0409/reactnative/blob/main/Shopping10/src/screens/Home.tsx) (Product Home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interactive["Interactive Apps"]
  node_currency_app["Currency Converter<br/>[App.tsx]"]
  node_currency_rates["Currency Options<br/>[constant.ts]"]
  node_currency_button["Currency Button<br/>[CurrencyButton.tsx]"]
  node_tic_app["Tic-Tac-Toe Game<br/>[App.tsx]"]
  node_tic_icons["Game Icons<br/>[Icons.tsx]"]
  node_background_app["Background Changer<br/>[App.tsx]"]
  node_dice_app["Dice Roller<br/>[App.tsx]"]
end

subgraph group_ui["UI Examples"]
  node_card_demo["Card and Contact Demo<br/>[App.tsx]"]
  node_flat_cards["Flat Cards<br/>[FlatCards.tsx]"]
  node_elevated_cards["Elevated Cards<br/>[ElevatedCards.tsx]"]
  node_fancy_card["Fancy Card<br/>[FancyCard.tsx]"]
  node_action_card["Action Card<br/>[ActionCard.tsx]"]
  node_contact_list["Contact List<br/>[ContactList.tsx]"]
end

subgraph group_commerce["Navigation and Shop"]
  node_navigation_app["Navigation Demo<br/>[App.tsx]"]
  node_navigation_home["Home Screen<br/>[Home.tsx]"]
  node_navigation_details["Details Screen<br/>[Details.tsx]"]
  node_shopping_app["Shopping App<br/>[App.tsx]"]
  node_shopping_home["Product Home<br/>[Home.tsx]"]
  node_shopping_details["Product Details<br/>[Details.tsx]"]
  node_product_item["Product Item<br/>[ProductItem.tsx]"]
  node_product_data["Product Data<br/>[constants.ts]"]
end

subgraph group_media["Music Player"]
  node_music_app["Music App Entry<br/>[App.tsx]"]
  node_music_service["Player Service"]
  node_music_player["Player Screen<br/>[MusicPlayer.tsx]"]
  node_song_info["Song Information<br/>[SongInfo.tsx]"]
  node_song_slider["Song Slider<br/>[SongSlider.tsx]"]
  node_control_center["Playback Controls<br/>[ControlCenter.tsx]"]
  node_playlist["Playlist Data<br/>[constants.ts]"]
end

subgraph group_auth["Authentication"]
  node_auth_app["Auth App Entry<br/>[App.tsx]"]
  node_auth_context["Auth Context"]
  node_auth_service["Appwrite Service<br/>[service.ts]"]
  node_auth_router["Session Router<br/>[Router.tsx]"]
  node_loading["Loading View<br/>[Loading.tsx]"]
  node_app_stack["Signed-in Routes<br/>[AppStack.tsx]"]
end

node_currency_app -->|"reads options"| node_currency_rates
node_currency_app -->|"renders buttons"| node_currency_button
node_tic_app -->|"renders icons"| node_tic_icons
node_card_demo -->|"renders"| node_flat_cards
node_card_demo -->|"renders"| node_elevated_cards
node_card_demo -->|"renders"| node_fancy_card
node_card_demo -->|"renders"| node_action_card
node_card_demo -->|"renders"| node_contact_list
node_navigation_app -->|"routes to"| node_navigation_home
node_navigation_app -->|"routes to"| node_navigation_details
node_shopping_app -->|"routes to"| node_shopping_home
node_shopping_app -->|"routes to"| node_shopping_details
node_shopping_home -->|"renders"| node_product_item
node_shopping_home -->|"reads data"| node_product_data
node_music_app -->|"initializes playback"| node_music_service
node_music_app -->|"renders"| node_music_player
node_music_service -->|"loads tracks"| node_playlist
node_music_player -->|"renders"| node_song_info
node_music_player -->|"renders"| node_song_slider
node_music_player -->|"renders"| node_control_center
node_auth_app -->|"provides context"| node_auth_context
node_auth_app -->|"renders router"| node_auth_router
node_auth_context -->|"uses service"| node_auth_service
node_auth_router -->|"reads session state"| node_auth_context
node_auth_router -->|"shows while loading"| node_loading
node_auth_router -->|"selects signed-in routes"| node_app_stack

click node_currency_app "https://github.com/jsaurav0409/reactnative/blob/main/CurrencyConverter06/src/App.tsx"
click node_currency_rates "https://github.com/jsaurav0409/reactnative/blob/main/CurrencyConverter06/src/constant.ts"
click node_currency_button "https://github.com/jsaurav0409/reactnative/blob/main/CurrencyConverter06/components/CurrencyButton.tsx"
click node_tic_app "https://github.com/jsaurav0409/reactnative/blob/main/TicTacToe07/src/App.tsx"
click node_tic_icons "https://github.com/jsaurav0409/reactnative/blob/main/TicTacToe07/components/Icons.tsx"
click node_background_app "https://github.com/jsaurav0409/reactnative/blob/main/bgChanger04/App.tsx"
click node_dice_app "https://github.com/jsaurav0409/reactnative/blob/main/rollthedice05/src/App.tsx"
click node_card_demo "https://github.com/jsaurav0409/reactnative/blob/main/Project02/App.tsx"
click node_flat_cards "https://github.com/jsaurav0409/reactnative/blob/main/Project02/components/FlatCards.tsx"
click node_elevated_cards "https://github.com/jsaurav0409/reactnative/blob/main/Project02/components/ElevatedCards.tsx"
click node_fancy_card "https://github.com/jsaurav0409/reactnative/blob/main/Project02/components/FancyCard.tsx"
click node_action_card "https://github.com/jsaurav0409/reactnative/blob/main/Project02/components/ActionCard.tsx"
click node_contact_list "https://github.com/jsaurav0409/reactnative/blob/main/Project02/components/ContactList.tsx"
click node_navigation_app "https://github.com/jsaurav0409/reactnative/blob/main/NavigationExplore09/src/App.tsx"
click node_navigation_home "https://github.com/jsaurav0409/reactnative/blob/main/NavigationExplore09/src/screens/Home.tsx"
click node_navigation_details "https://github.com/jsaurav0409/reactnative/blob/main/NavigationExplore09/src/screens/Details.tsx"
click node_shopping_app "https://github.com/jsaurav0409/reactnative/blob/main/Shopping10/src/App.tsx"
click node_shopping_home "https://github.com/jsaurav0409/reactnative/blob/main/Shopping10/src/screens/Home.tsx"
click node_shopping_details "https://github.com/jsaurav0409/reactnative/blob/main/Shopping10/src/screens/Details.tsx"
click node_product_item "https://github.com/jsaurav0409/reactnative/blob/main/Shopping10/src/components/ProductItem.tsx"
click node_product_data "https://github.com/jsaurav0409/reactnative/blob/main/Shopping10/src/data/constants.ts"
click node_music_app "https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/App.tsx"
click node_music_service "https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/musicPlayerServices.js"
click node_music_player "https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/screens/MusicPlayer.tsx"
click node_song_info "https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/components/SongInfo.tsx"
click node_song_slider "https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/components/SongSlider.tsx"
click node_control_center "https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/components/ControlCenter.tsx"
click node_playlist "https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/constants.ts"
click node_auth_app "https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/App.tsx"
click node_auth_context "https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/appwrite/AppwriteContext.tsx"
click node_auth_service "https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/appwrite/service.ts"
click node_auth_router "https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/routes/Router.tsx"
click node_loading "https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/components/Loading.tsx"
click node_app_stack "https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/routes/AppStack.tsx"

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_currency_app,node_currency_rates,node_currency_button,node_tic_app,node_tic_icons,node_background_app,node_dice_app toneBlue
class node_card_demo,node_flat_cards,node_elevated_cards,node_fancy_card,node_action_card,node_contact_list toneAmber
class node_navigation_app,node_navigation_home,node_navigation_details,node_shopping_app,node_shopping_home,node_shopping_details,node_product_item,node_product_data toneMint
class node_music_app,node_music_service,node_music_player,node_song_info,node_song_slider,node_control_center,node_playlist toneRose
class node_auth_app,node_auth_context,node_auth_service,node_auth_router,node_loading,node_app_stack toneIndigo
```

## Components

### Interactive Apps

- [Currency Converter](https://github.com/jsaurav0409/reactnative/blob/main/CurrencyConverter06/src/App.tsx): `CurrencyConverter06/src/App.tsx`
- [Currency Options](https://github.com/jsaurav0409/reactnative/blob/main/CurrencyConverter06/src/constant.ts): `CurrencyConverter06/src/constant.ts`
- [Currency Button](https://github.com/jsaurav0409/reactnative/blob/main/CurrencyConverter06/components/CurrencyButton.tsx): `CurrencyConverter06/components/CurrencyButton.tsx`
- [Tic-Tac-Toe Game](https://github.com/jsaurav0409/reactnative/blob/main/TicTacToe07/src/App.tsx): `TicTacToe07/src/App.tsx`
- [Game Icons](https://github.com/jsaurav0409/reactnative/blob/main/TicTacToe07/components/Icons.tsx): `TicTacToe07/components/Icons.tsx`
- [Background Changer](https://github.com/jsaurav0409/reactnative/blob/main/bgChanger04/App.tsx): `bgChanger04/App.tsx`
- [Dice Roller](https://github.com/jsaurav0409/reactnative/blob/main/rollthedice05/src/App.tsx): `rollthedice05/src/App.tsx`

### UI Examples

- [Card and Contact Demo](https://github.com/jsaurav0409/reactnative/blob/main/Project02/App.tsx): `Project02/App.tsx`
- [Flat Cards](https://github.com/jsaurav0409/reactnative/blob/main/Project02/components/FlatCards.tsx): `Project02/components/FlatCards.tsx`
- [Elevated Cards](https://github.com/jsaurav0409/reactnative/blob/main/Project02/components/ElevatedCards.tsx): `Project02/components/ElevatedCards.tsx`
- [Fancy Card](https://github.com/jsaurav0409/reactnative/blob/main/Project02/components/FancyCard.tsx): `Project02/components/FancyCard.tsx`
- [Action Card](https://github.com/jsaurav0409/reactnative/blob/main/Project02/components/ActionCard.tsx): `Project02/components/ActionCard.tsx`
- [Contact List](https://github.com/jsaurav0409/reactnative/blob/main/Project02/components/ContactList.tsx): `Project02/components/ContactList.tsx`

### Navigation and Shop

- [Navigation Demo](https://github.com/jsaurav0409/reactnative/blob/main/NavigationExplore09/src/App.tsx): `NavigationExplore09/src/App.tsx`
- [Home Screen](https://github.com/jsaurav0409/reactnative/blob/main/NavigationExplore09/src/screens/Home.tsx): `NavigationExplore09/src/screens/Home.tsx`
- [Details Screen](https://github.com/jsaurav0409/reactnative/blob/main/NavigationExplore09/src/screens/Details.tsx): `NavigationExplore09/src/screens/Details.tsx`
- [Shopping App](https://github.com/jsaurav0409/reactnative/blob/main/Shopping10/src/App.tsx): `Shopping10/src/App.tsx`
- [Product Home](https://github.com/jsaurav0409/reactnative/blob/main/Shopping10/src/screens/Home.tsx): `Shopping10/src/screens/Home.tsx`
- [Product Details](https://github.com/jsaurav0409/reactnative/blob/main/Shopping10/src/screens/Details.tsx): `Shopping10/src/screens/Details.tsx`
- [Product Item](https://github.com/jsaurav0409/reactnative/blob/main/Shopping10/src/components/ProductItem.tsx): `Shopping10/src/components/ProductItem.tsx`
- [Product Data](https://github.com/jsaurav0409/reactnative/blob/main/Shopping10/src/data/constants.ts): `Shopping10/src/data/constants.ts`

### Music Player

- [Music App Entry](https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/App.tsx): `MusicPlayer08/src/App.tsx`
- [Player Service](https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/musicPlayerServices.js): `MusicPlayer08/musicPlayerServices.js`
- [Player Screen](https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/screens/MusicPlayer.tsx): `MusicPlayer08/src/screens/MusicPlayer.tsx`
- [Song Information](https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/components/SongInfo.tsx): `MusicPlayer08/src/components/SongInfo.tsx`
- [Song Slider](https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/components/SongSlider.tsx): `MusicPlayer08/src/components/SongSlider.tsx`
- [Playback Controls](https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/components/ControlCenter.tsx): `MusicPlayer08/src/components/ControlCenter.tsx`
- [Playlist Data](https://github.com/jsaurav0409/reactnative/blob/main/MusicPlayer08/src/constants.ts): `MusicPlayer08/src/constants.ts`

### Authentication

- [Auth App Entry](https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/App.tsx): `appwriteAuth11/src/App.tsx`
- [Auth Context](https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/appwrite/AppwriteContext.tsx): `appwriteAuth11/src/appwrite/AppwriteContext.tsx`
- [Appwrite Service](https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/appwrite/service.ts): `appwriteAuth11/src/appwrite/service.ts`
- [Session Router](https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/routes/Router.tsx): `appwriteAuth11/src/routes/Router.tsx`
- [Loading View](https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/components/Loading.tsx): `appwriteAuth11/src/components/Loading.tsx`
- [Signed-in Routes](https://github.com/jsaurav0409/reactnative/blob/main/appwriteAuth11/src/routes/AppStack.tsx): `appwriteAuth11/src/routes/AppStack.tsx`

## Connections

- Currency Converter → Currency Options: reads options (evidence: `CurrencyConverter06/src/App.tsx`)
- Currency Converter → Currency Button: renders buttons (evidence: `CurrencyConverter06/src/App.tsx`)
- Tic-Tac-Toe Game → Game Icons: renders icons (evidence: `TicTacToe07/src/App.tsx`)
- Card and Contact Demo → Flat Cards: renders (evidence: `Project02/App.tsx`)
- Card and Contact Demo → Elevated Cards: renders (evidence: `Project02/App.tsx`)
- Card and Contact Demo → Fancy Card: renders (evidence: `Project02/App.tsx`)
- Card and Contact Demo → Action Card: renders (evidence: `Project02/App.tsx`)
- Card and Contact Demo → Contact List: renders (evidence: `Project02/App.tsx`)
- Navigation Demo → Home Screen: routes to (evidence: `NavigationExplore09/src/App.tsx`)
- Navigation Demo → Details Screen: routes to (evidence: `NavigationExplore09/src/App.tsx`)
- Shopping App → Product Home: routes to (evidence: `Shopping10/src/App.tsx`)
- Shopping App → Product Details: routes to (evidence: `Shopping10/src/App.tsx`)
- Product Home → Product Item: renders (evidence: `Shopping10/src/screens/Home.tsx`)
- Product Home → Product Data: reads data (evidence: `Shopping10/src/screens/Home.tsx`)
- Music App Entry → Player Service: initializes playback (evidence: `MusicPlayer08/src/App.tsx`)
- Music App Entry → Player Screen: renders (evidence: `MusicPlayer08/src/App.tsx`)
- Player Service → Playlist Data: loads tracks (evidence: `MusicPlayer08/musicPlayerServices.js`)
- Player Screen → Song Information: renders (evidence: `MusicPlayer08/src/screens/MusicPlayer.tsx`)
- Player Screen → Song Slider: renders (evidence: `MusicPlayer08/src/screens/MusicPlayer.tsx`)
- Player Screen → Playback Controls: renders (evidence: `MusicPlayer08/src/screens/MusicPlayer.tsx`)
- Auth App Entry → Auth Context: provides context (evidence: `appwriteAuth11/src/App.tsx`)
- Auth App Entry → Session Router: renders router (evidence: `appwriteAuth11/src/App.tsx`)
- Auth Context → Appwrite Service: uses service (evidence: `appwriteAuth11/src/appwrite/AppwriteContext.tsx`)
- Session Router → Auth Context: reads session state (evidence: `appwriteAuth11/src/routes/Router.tsx`)
- Session Router → Loading View: shows while loading (evidence: `appwriteAuth11/src/routes/Router.tsx`)
- Session Router → Signed-in Routes: selects signed-in routes (evidence: `appwriteAuth11/src/routes/Router.tsx`)
