react-pocketbase-hooks
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

PocketBase React SDK

Npm package version

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 native EventSource implementation, so in order to use the realtime service you'll need to load a EventSource 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;

Will Update Documentation Soon!

Package Sidebar

Install

npm i react-pocketbase-hooks

Weekly Downloads

3

Version

0.1.6

License

MIT

Unpacked Size

397 kB

Total Files

93

Last publish

Collaborators

  • edcelmanuel