How kaushikbhadarka/diagnalmovielist works
DiagnalMovie is a React Native movie-listing app whose catalog comes from local JSON served through a Mirage mock API. The app initializes that API, then the movie-list screen fetches pages, appends results as the user scrolls, filters titles by the navbar search text, and displays poster cards. The graph also includes the Android New Architecture host and its registry/delegate support. Native startup beyond the shown host wiring and iOS runtime wiring were not sampled, so those relationships are omitted.
Main entry points: MovieListScreen.js Movie list · Navbar.js Search navbar · App.js App shell · index.js Mock API
Components 13
Movie App
- App shell
src/App.js - Movie list
src/screens/MovieListScreen.js - Search navbar
src/components/Navbar.js - UI constants
src/constants/index.js
Local Catalog
- Mock API
src/services/index.js - Movie page data
src/assets/json
Android Runtime
- React Native host
android/app/src/main/java/com/diagnalmovie/newarchitecture/MainApplicationReactNativeHost.java
Native Architecture
- TurboModule delegate
android/app/src/main/java/com/diagnalmovie/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java - Component registry
android/app/src/main/java/com/diagnalmovie/newarchitecture/components/MainComponentsRegistry.java - Native component registry
android/app/src/main/jni/MainComponentsRegistry.h - Native TurboModule delegate
android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h
Other components
- Movie viewer
- Viewer
Connections 14
- Movie viewer → App shell: opens app
- App shell → Mock API: starts mock API
src/App.js - App shell → Movie list: renders
src/App.js - Movie list → Mock API: requests pages
src/screens/MovieListScreen.js - Mock API → Movie page data: serves page data
src/services/index.js - Movie list → Search navbar: renders
src/screens/MovieListScreen.js - Search navbar → Movie list: updates search
src/components/Navbar.js - Movie list → UI constants: uses poster assets
src/screens/MovieListScreen.js - Search navbar → UI constants: uses UI assets
src/components/Navbar.js - Viewer → Search navbar: searches titles
src/components/Navbar.js - React Native host → TurboModule delegate: builds delegate
android/app/src/main/java/com/diagnalmovie/newarchitecture/MainApplicationReactNativeHost.java - React Native host → Component registry: registers components
android/app/src/main/java/com/diagnalmovie/newarchitecture/MainApplicationReactNativeHost.java - Component registry → Native component registry: native counterpart
- TurboModule delegate → Native TurboModule delegate: native counterpart