How kishorevasan2002/instagram-clone-app works
This React Native Instagram replica routes signed-out users through authentication and signed-in users into a social app for browsing/searching, sharing media, interacting with posts and stories, and messaging. The map highlights the demonstrated navigation, search, media-selection, story/reel, and like paths, while retaining documented profile, follow, notification, and chat capabilities from the source tree and README. Several domain implementations were not sampled, so their internal links are omitted; Firebase is shown only where source explicitly demonstrates its use.
Main entry points: SignedInStack.jsx Signed-in navigation · BottomTabs.jsx Main tabs · Search.jsx Search screen · UserContext.jsx Current user context
Components 31
App navigation
- App entry
App.js - Auth routing
src/navigation/AuthNavigation.jsx - Signed-in navigation
src/navigation/SignedInStack.jsx - Main tabs
src/navigation/BottomTabs.jsx
Identity and profiles
- Sign-in flows
src/navigation/SignedOutStack.jsx - Login form
src/components/login/LoginForm.jsx - Current user context
src/contexts/UserContext.jsx - Current user lookup
src/hooks/useCurrentUser.js - Profiles and editing
src/screens/EditProfile.jsx - Follow relationships
src/screens/Follow.jsx
Browse and discovery
- Home feed
src/screens/Home.jsx - Search screen
src/screens/Search.jsx - Find users
src/hooks/useFindUsers.js - Search results
src/components/search/Searching.jsx - Post discovery
src/hooks/useFetchPosts.js
Media and stories
- Device media picker
src/screens/MediaLibrary.jsx - Album selection
src/utils/useAlbumSelector.js - Camera capture
src/components/shared/CameraModule.jsx - Post creation
src/screens/NewPost.jsx - Story creation
src/screens/NewStory.jsx - Reel creation
src/screens/NewReel.jsx - Stories context
src/contexts/StoriesContext.jsx - Story viewing
src/screens/Story.jsx - Reels viewing
src/screens/Reels.jsx
Social interaction
- Firebase services
src/services/firebaseConfig.js - Like actions
src/hooks/useHandleLike.js - Like gesture
src/utils/useLikeAnimation.js - Notifications
src/screens/Notifications.jsx - Chat and messages
src/screens/Chating.jsx - Fetch messages
src/hooks/useFetchMessages.js
Other components
- App user
Connections 35
- App user → App entry: opens app
README.md - App entry → Auth routing: renders
App.js - Auth routing → Sign-in flows: routes signed out
src/navigation/AuthNavigation.jsx - Auth routing → Signed-in navigation: routes signed in
src/navigation/AuthNavigation.jsx - Sign-in flows → Login form: routes login
src/navigation/SignedOutStack.jsx - Signed-in navigation → Main tabs: starts at tabs
src/navigation/SignedInStack.jsx - Signed-in navigation → Current user context: provides user state
src/navigation/SignedInStack.jsx - Current user context → Current user lookup: loads current user
src/contexts/UserContext.jsx - Main tabs → Home feed: routes to
src/navigation/BottomTabs.jsx - Main tabs → Search screen: routes to
src/navigation/BottomTabs.jsx - Search screen → Current user context: reads user
src/screens/Search.jsx - Search screen → Find users: searches users
src/screens/Search.jsx - Search screen → Post discovery: shows default posts
src/screens/Search.jsx - Search screen → Search results: renders results
src/screens/Search.jsx - Main tabs → Reels viewing: routes to
src/navigation/BottomTabs.jsx - Search results → Profiles and editing: opens user profile
src/components/search/Searching.jsx - Signed-in navigation → Profiles and editing: registers profile editing
src/navigation/SignedInStack.jsx - Signed-in navigation → Follow relationships: registers follow screens
src/navigation/SignedInStack.jsx - Signed-in navigation → Device media picker: registers media picker
src/navigation/SignedInStack.jsx - Device media picker → Album selection: loads albums
src/screens/MediaLibrary.jsx - Device media picker → Camera capture: offers camera capture
src/screens/MediaLibrary.jsx - Signed-in navigation → Post creation: registers post creation
src/navigation/SignedInStack.jsx - Signed-in navigation → Story creation: registers story creation
src/navigation/SignedInStack.jsx - Signed-in navigation → Reel creation: registers reel creation
src/navigation/SignedInStack.jsx - Signed-in navigation → Stories context: provides stories
src/navigation/SignedInStack.jsx - Stories context → Story viewing: supplies stories
- Main tabs → Reels viewing: routes to
src/navigation/BottomTabs.jsx - Reels viewing → Current user context: reads user
src/screens/Reels.jsx - Story viewing → Like actions: handles story likes
src/screens/Story.jsx - Like gesture → Like actions: handles double-tap like
src/utils/useLikeAnimation.js - Like actions → Firebase services: updates likes
src/hooks/useHandleLike.js - Signed-in navigation → Notifications: registers notifications
src/navigation/SignedInStack.jsx - Signed-in navigation → Chat and messages: registers messaging
src/navigation/SignedInStack.jsx - Chat and messages → Fetch messages: fetches messages
- App user → Login form: authenticates
README.md