RefirebaseRefirebase

React Native Hooks

Using React Hooks in React Native / Expo.

Usage

You can use the exact same imports for hooks in React Native as you do on the web.

Import from refirebase/react just like in web projects. The bundler automatically resolves the underlying Firebase calls to the native-compatible SDK.
Component.tsx
import { useCollection, useAuth } from 'refirebase/react';

export function MobileList() {
  const { user } = useAuth();
  const { data } = useCollection('posts');
  
  // Renders exactly the same way on mobile!
  return <View>...</View>;
}