How ubeydeozdmr/grabsnap works
Project type and purpose
• GrabSnap is a cross-platform (iOS & Android) mobile application built with React Native and TypeScript.
• It’s a front-end centric, design-driven project for buying and selling second-hand cars. The backend is implied by local JSON “data” files and an api abstraction but not packaged here.
File structure
• Top-level entry points:
• App.tsx – main root component
• index.ts – app bootstrap
• app.json / eas.json – Expo configuration
• Presentation layer:
• screens/ – each “page” or view in the app (Home, Filter, CarDetails, authentication flows under screens/auth)
• components/ – reusable UI widgets (Card, FormButton, Tile, etc.)
• State & business logic:
• context/ – React Context providers (AuthContext, UserContext) implementing authentication state, user data
• Data layer:
• api/ – abstraction over data calls (data.ts, utils.ts)
• data/ – static JSON files emulating persistence (cars.json, users.json, makes/models)
• Utilities & styling:
• utils/ – helper functions (normalize, validation)
• Tests:
• __tests__/ – unit tests for data utilities
README
• Confirms front-end oriented, design centric, uses Context API for authentication, shaped by Figma mockups.
• No real backend; local data files are the “data store.”