Unofficial React SDK for working with PocketBase JS SDK. Supports React, React Native, and Expo.
- 🔄 Automatic real-time data synchronization
- 🎯 TypeScript support out of the box
- 📱 React Native and Expo support
- 🔐 Built-in authentication system
- 🎨 Simple and intuitive API
# Using npm
npm install pocketbase-react --save
# Using yarn
yarn add pocketbase-reactFor React Native/Expo additional setup, see React Native Setup Guide.
import { PocketBaseProvider } from 'pocketbase-react';
const App = () => {
return (
<PocketBaseProvider
serverURL="YOUR_SERVER_URL"
webRedirectURL="http://localhost:3000"
mobileRedirectURL="expo://localhost:19000"
>
<YourApp />
</PocketBaseProvider>
);
};For detailed examples and API reference, visit our documentation.
# Install dependencies
yarn install
# Run tests
yarn test
# Build project
yarn buildMIT