Skip to content
 
 

Repository files navigation

PocketBase React SDK

Npm package version

Unofficial React SDK for working with PocketBase JS SDK. Supports React, React Native, and Expo.

Features

  • 🔄 Automatic real-time data synchronization
  • 🎯 TypeScript support out of the box
  • 📱 React Native and Expo support
  • 🔐 Built-in authentication system
  • 🎨 Simple and intuitive API

Quick Start

Installation

# Using npm
npm install pocketbase-react --save

# Using yarn
yarn add pocketbase-react

For React Native/Expo additional setup, see React Native Setup Guide.

Basic Setup

import { PocketBaseProvider } from 'pocketbase-react';

const App = () => {
  return (
    <PocketBaseProvider
      serverURL="YOUR_SERVER_URL"
      webRedirectURL="http://localhost:3000"
      mobileRedirectURL="expo://localhost:19000"
    >
      <YourApp />
    </PocketBaseProvider>
  );
};

Documentation

For detailed examples and API reference, visit our documentation.

Development

# Install dependencies
yarn install

# Run tests
yarn test

# Build project
yarn build

License

MIT

About

Unofficial React SDK (React, React Native, Expo)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages