How harshitshukla-github/react_native_introduction works
Project Type and Purpose
• This is a React Native “Introduction” mobile application scaffolded with Expo.
• It’s a client-only, beginner-friendly demo showcasing core RN components, navigation (using the new Expo Router), styling, theming, and basic file-based routing.
File-Structure Analysis
• Top-level “introduction” directory contains:
• app.json & app/ – Expo Router’s entry and file-based routes
• assets/ – images and font files
• components/ – reusable UI building blocks and their tests
• scripts/ – helper scripts (e.g., project reset)
• package.json & tsconfig.json – dependency and TypeScript configs
• The presence of app/(tabs)/ and +not-found.tsx points to Expo Router’s nested-layout/tab navigation.
Key README Insights
• Confirms it’s an “introduction to React Native,” focusing on setup, core components, navigation, and styling.
• No backend or external data-service sections; purely frontend.
a. Main Components
• Mobile App Runtime (Expo Go or standalone)
• Metro Bundler / JavaScript Engine
• Screen & Routing Layer (app/ folder)
• UI Component Library (components/)
• Theming & Business Logic (hooks/, constants/)
• Asset Layer (assets/fonts, assets/images)
• Build & Config (package.json, tsconfig.json, app.json)
• External Dependencies (React Native core modules, Expo SDK, React Navigation)
b. Relationships & Data Flow
• User interacts with Screens → Screen components import UI Components
• UI Components consume Hooks & Constants for theming/styling
• Screens trigger navigation events (tabs, stack) via Expo Router
• Metro Bundler packages code + assets → JavaScript Engine on device
• app.json configures runtime behavior; package.json drives dependencies
c. Architectural Patterns
• Component-based separation (atomic UI modules vs. screens)
• File-based routing (Expo Router’s convention over configuration)
• Theming via custom hooks (useColorScheme, useThemeColor) and constants
• Test-driven component validation (Jest snapshots under components/__tests__)
d. Relevant Technologies
• React Native + Expo SDK (mobile runtime)
• Expo Router (file-system routing & nested layouts)
• TypeScript (static types via tsconfig.json)
• Metro Bundler (bundles TSX/JS and assets)
• Jest (component testing)