PocketBase React SDK
Unofficial React SDK (React, React Native, Expo) for interacting with the PocketBase JS SDK.
Installation
React, React Native or Expo
# Using npm
npm install react-pocketbase-hooks --save
#Using yarn
yarn add react-pocketbase-hooks
import { Pocketbase } from 'react-pocketbase-hooks';
🔧 React Native / Expo doesn't have nativeEventSource
implementation, so in order to use the realtime service you'll need to load aEventSource
polyfill. I recommend EventSource/eventsource# Using npm npm install eventsource --save # Using yarn yarn add eventsource// EventSource.ts var Source = require('event-source'); global.EventSource = Source;