Unofficial React SDK (React, React Native, Expo) for interacting with the PocketBase JS SDK
sh
Using npm
npm install react-pocketbase-hooks --save
#Using yarn
yarn add react-pocketbase-hooks
`
`tsx
import { Pocketbase } from 'react-pocketbase-hooks';
`
---
> 🔧 React Native / Expo doesn't have native EventSource implementation, so in order to use the realtime service you'll need to load a EventSource polyfill.
> I recommend EventSource/eventsource
>
> `sh
> # Using npm
> npm install eventsource --save
>
> # Using yarn
> yarn add eventsource
> `
>
> `js
> // EventSource.ts
> var Source = require('event-source');
> global.EventSource = Source;
> `
Will Update Documentation Soon!