Files
supabase/examples/auth/quickstarts/react-native
Katerina Skroumpelou a7563e9fe6 docs(examples): use latest v2 of supabase-js and remove lock files (#44704)
* Use latest 2.x version of `@supabase/supabase-js` in all examples
* Use `latest` version of `@supabase/ssr` in all examples
* Remove lock files from examples
* Add examples lock files in .gitignore

The rationale is:
- Lock files are not actively maintained/updated (or the versions in the
package.json files for that matter)
- They pin an arbitrary version (from the end-user perspective)
- Removes the need to manually update the versions and reinstall
- Consistency

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

## Release Notes

* **Chores**
* Broadened Supabase SDK dependency version constraints across example
projects for greater flexibility with compatible updates
  * Updated some SSR package dependencies to track latest releases
* Added gitignore rules for dependency lock files in example directories

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-14 09:24:46 +03:00
..

Supabase Auth with React Native

This example demonstrates how to use Supabase Auth with React Native and Expo.

Getting started

1. Create a Supabase project

Launch a new project in the Supabase Dashboard.

2. Configure environment variables

Create a .env file and populate with your Supabase connection variables:

You can find these in your Supabase Dashboard under Settings > API.

3. Install dependencies

npm install

4. Start the app

npm start

Follow the instructions in the terminal to open the app on your device or emulator.

Project structure

├── App.tsx                 # Main app component
├── components/
│   └── Auth.tsx            # Authentication form component
├── lib/
│   └── supabase.ts         # Supabase client configuration
├── app.json                # Expo configuration
├── package.json            # Dependencies
└── tsconfig.json           # TypeScript configuration

Features

  • Email/password sign up
  • Email/password sign in
  • Session persistence with AsyncStorage
  • Automatic token refresh

Learn more