Skip to content

kleviss/rn-supabase-react-query-emotion-native-boilerplate

Repository files navigation

RN Supabase React Query Emotion Native Boilerplate 🚀

A modern React Native boilerplate with Supabase, React Query, and Emotion Native styling. Built with Expo.

Overview

This boilerplate provides a solid foundation for building React Native applications with a powerful tech stack. It includes authentication, data fetching, styling, and navigation setup out of the box.

Article About This Boilerplate

React Native Boilerplate with Supabase, React Query, and Emotion Native Styling

Features

  • ⚡️ Expo SDK 50
  • 🔐 Supabase Integration
  • 🎯 React Query for Data Fetching
  • 💅 Emotion Native for Styling
  • 📱 Expo Router for Navigation
  • 🌙 Dark/Light Mode Support
  • 🏗️ TypeScript Support
  • 📁 File-based Routing
  • 🔄 Auto-refresh Tokens

Prerequisites

Before you begin, ensure you have the following installed:

Quick Start

  1. Clone the repository:

    git clone https://github.com/yourusername/rn-supabase-react-query-emotion-native-boilerplate.git
    cd rn-supabase-react-query-emotion-native-boilerplate
  2. Install dependencies:

    yarn install
    # or
    npm install
  3. Set up environment variables: Create a .env file in the root directory with your Supabase credentials:

    EXPO_PUBLIC_SUPABASE_APP_URL=your_supabase_project_url
    EXPO_PUBLIC_SUPABASE_API_KEY=your_supabase_anon_key

Running the App

  1. Start the development server:

    npx expo start
  2. Run on specific platforms:

    • Press i to run on iOS simulator
    • Press a to run on Android emulator
    • Press w to run in web browser
    • Scan the QR code with Expo Go app on your physical device

Project Structure

├── app/                   # App directory (Expo Router)
│   ├── (auth)/           # Protected routes
│   ├── (public)/         # Public routes
│   └── _layout.tsx       # Root layout
├── assets/               # Static assets
├── components/           # Reusable components
├── hooks/                # Custom hooks
├── services/             # API services
├── styles/               # Global styles
└── types/                # TypeScript types

Tech Stack

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For support, klevissxh@gmail.com or open an issue in this repository.

Acknowledgments

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •