How kowsickram24/rn_instagram works
This repository is a React Native Instagram-style social app. A user enters through authentication or the signed-in navigation stack, then browses and creates posts and stories, manages a profile, and chats. Firebase provides authentication and Firestore-backed data; Redux/RTK Query holds shared application state and story/chat APIs. The file tree and source index establish several product areas, but many screens and navigation modules were not excerpted, so some relationships are intentionally omitted rather than inferred.
Main entry points: Register.js Registration · App.js Application root · BottomTab.js Main tabs · index.js Navigation
Components 21
App shell
- Application root
App.js - Navigation
src/navigation/Stack/index.js - Main tabs
src/navigation/BottomTab/BottomTab.js
Identity
- Auth navigation
src/navigation/Stack/Auth/AuthStack.js - Login
src/screens/auth/login.js - Registration
src/screens/auth/Register.js - Form validation
src/utils/validation.js - Firebase services
firebase.config.js
Social content
Messaging and state
- Story API
src/store/slices/storiesApi.js - Chat conversation
src/screens/app/chat/ChatBox.js - Chat API
src/store/slices/chatsApi.js - Redux store
src/store/index.js - AWS S3 media
src/services/aws/s3bucket.js
Other components
- App user
- Firestore
Connections 25
- App user → Application root: opens
- Application root → Navigation: renders
App.js - Application root → Redux store: provides
App.js - Application root → Firebase services: checks connection
App.js - Navigation → Auth navigation: routes
- Auth navigation → Login: routes
src/navigation/Stack/Auth/AuthStack.js - Auth navigation → Registration: routes
src/navigation/Stack/Auth/AuthStack.js - App user → Registration: submits details
- Registration → Form validation: validates with
src/screens/auth/Register.js - Registration → Firebase services: creates account
src/screens/auth/Register.js - Registration → Firestore: writes profile
src/screens/auth/Register.js - Navigation → Main tabs: routes
- Main tabs → Home feed: routes
src/navigation/BottomTab/BottomTab.js - Main tabs → Explore: routes
src/navigation/BottomTab/BottomTab.js - Main tabs → Profile: routes
src/navigation/BottomTab/BottomTab.js - Home feed → Feed post: renders
- App user → Create post: creates content
- Profile → Story API: uses
src/screens/app/profile/Profile.js - Stories → Story API: uses
src/screens/app/story/IGstories.js - Story API → Firestore: reads and updates
src/store/slices/storiesApi.js - App user → Chat conversation: messages
- Chat conversation → Firestore: reads and writes
src/screens/app/chat/ChatBox.js - Chat conversation → AWS S3 media: uses media service
src/screens/app/chat/ChatBox.js - Redux store → Chat API: registers middleware
src/store/index.js - Chat API → Firestore: uses
src/store/slices/chatsApi.js