How alierenkayhan/react_native_real_estate works
Project type and purpose
• This is a full-stack mobile application (Real Estate) built with Expo/React Native on the client and Appwrite as a cloud-hosted backend.
• Purpose: allow users to authenticate via Google, browse property listings, view details, manage profiles, and fetch/store data in Appwrite.
File structure
• Top-level “app” directory uses Expo Router’s file-based routing:
• /app/_layout.tsx – global layout & navigation container
• /app/(root)/index.tsx – Home screen
• /app/(root)/(tabs)/* – Bottom-tab screens: Explore, Profile
• /app/properties/[id].tsx – Dynamic property details page
• /app/sign-in.tsx – Sign-in screen
• lib/appwrite.ts: encapsulates all Appwrite SDK initialization and methods for authentication and CRUD operations.
• Global styling via app/global.css, integrated with Tailwind CSS (tailwind.config.js, nativewind-env.d.ts).
• Config files: babel.config.js, metro.config.js, tsconfig.json.
README for additional insights
• Uses Expo SDK 52, TypeScript, TailwindCSS, Nativewind, and Appwrite (Authentication, Database, Storage).
• Features: Google Auth, property listing/filter, search, dynamic routing, centralized data fetching (inspired by TanStack useQuery).
a. Main components (blocks):
• Mobile Device running the Expo App
• UI Layer (React Native screens & components)
• Navigation Layer (Expo Router file-based routing)
• Data Layer (lib/appwrite.ts, custom hooks/useQuery)
• Asset Layer (constants & static assets)
• External Services (Appwrite: Auth, Database, Storage)
b. Relationships & interactions:
1. User taps on a screen → UI Layer
2. UI triggers navigation via Router → Navigation Layer
3. UI/hooks call methods in Data Layer → Appwrite REST/SDK calls
4. Appwrite returns data → Data Layer transforms → UI updates
c. Architectural patterns & principles:
• Separation of concerns: UI vs. Data vs. Navigation
• File-based routing for automatic route generation
• Centralized API client (lib/appwrite.ts) for all backend interactions
• Reusable style system with Tailwind + Nativewind
d. Key technologies/frameworks:
• Expo SDK (bundler, assets pipeline, native APIs)
• React Native + TypeScript
• Expo Router (file-based navigation)
• Appwrite SDK (Auth, DB, Storage)
• Tailwind CSS/nativewind for styling