How devshubham1998/newrnhrapp works
Project type and purpose
• This is a cross-platform mobile application built with React Native (TypeScript/JavaScript) and bundled with Metro.
• It has no built-in backend in this repo; instead it consumes external HTTP APIs, uses Firebase Cloud Messaging (FCM) and provides local notifications, manages state with Redux, and renders native UIs on Android and iOS.
File structure
• Top-level:
• android/ and ios/ folders: native wrappers, platform-specific entry points, Gradle/Xcode projects, resource assets
• src/: all JavaScript/TypeScript code, organized into:
• components/ (UI building blocks)
• screens/ (feature pages: Login, Registration, Home, Survey)
• services/ (API clients, environment & config)
• notifications/ (FCMService, LocalNotificationService)
• store/ (Redux slices, rootReducer, store setup)
• helpers/, utils/, config.js
• App.tsx and index.js as the JS application entry
• Metro, Babel, ESLint, Prettier, Jest configs, package.json, tsconfig.json
• Patterns:
• Component-based UI
• Redux for application state (store, slices)
• Services layer abstracting HTTP calls (apis.ts, getApis.ts)
• Native bridges for push notifications and other platform features
README for additional insights
• Confirms the use of React Native community CLI
• Standard Metro bundler and platform launch instructions