Originally published on PEAKIQ
Source: https://www.peakiq.in/blog/how-to-set-up-supabase-in-a-bare-react-native-app
This guide covers everything needed to integrate Supabase into a bare React Native project:
Installing Supabase and required polyfill packages
Setting up polyfills for Node and Web APIs
Securely persisting auth sessions using react-native-keychain
Querying data from your Supabase tables
Works with React Native 0.80+ and Supabase JS v2+ (2025)
Prerequisites
Node.js and React Native CLI installed
A Supabase account and project
A bare React Native app (not using Expo)
Step 1 β Install Supabase and Required Packages
Install the core libraries:
npm install @supabase/supabase-js react-native-get-random-values react-native-url-polyfill base-64 react-native-keychain
Enter fullscreen mode
Exit fullscreen mode
Then install iOS pods:
npx pod-install
Enter fullscreen mode
Exit fullscreen mode
Step 2 β Create Polyfills for Node-like APIs
React Native does not include Node.js globalsβ¦