Skip to content
Mobile | Mar 30, 202545,823 views

Modern Chat App

Hi there! 👋

Learn how to build a real-time multi-user chat app using React Native and Expo with Clerk for Passkeys & Google Sign-In and Appwrite for the backend. Covers sign-in, the chat UI, and real-time updates.

This project includes a figma design with the UI components. Feel free to use it as a reference or clone it to your own Figma account.

🧙‍♂️ Want to become a React Native master? Check out the React Native Course.

Want to get comfortable with TypeScript? Take the React with TypeScript course.

Prerequisites

Dependencies

Clerk Authentication

bun add @clerk/clerk-expo @clerk/types @clerk/expo-passkeys
npx expo install expo-secure-store expo-auth-session expo-crypto expo-web-browser expo-build-properties
  • : Core Clerk SDK for Expo/React Native apps
  • : TypeScript types for Clerk
  • : Enables passkey (biometric) authentication
  • : Provides secure storage for tokens
  • & : Required for OAuth flows (Google Sign-in)
  • : Handles cryptographic operations
  • : Configures native build settings

Clerk Configuration

Add to your :

{
  "expo": {
    "ios": {
      "associatedDomains": [
        "applinks:your-clerk-app-link.clerk.accounts.dev",
        "webcredentials:your-clerk-app-link.clerk.accounts.dev"
      ]
    },
    "plugins": [
      "expo-secure-store",
      [
        "expo-build-properties",
        {
          "ios": {
            "deploymentTarget": "16.0" // Required for passkeys
          }
        }
      ]
    ]
  }
}

Appwrite Backend

npx expo install react-native-appwrite react-native-url-polyfill
  • : Appwrite SDK for React Native (using v0.7.0 for stability)
  • : Polyfill for URL handling in React Native

UI Components

npx expo install @legendapp/list
  • : High-performance virtualized list component for React Native

Environment Variables

Create a file in the root of your project and add the following variables:

EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY=your-key-here
EXPO_PUBLIC_APPWRITE_APP_ID=your-app-write-app-id

Youtube GitHub

Support Our Community

Want to go further? Pick one of the courses below.

React Native Course

Your support helps us continue creating valuable resources for everyone. ❤️