react-pocketbase-hooks
v0.1.6
Published
Unofficial React SDK (React, React Native, Expo) for interacting with the PocketBase JS SDK
Maintainers
Readme
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-hooksimport { Pocketbase } from 'react-pocketbase-hooks';🔧 React Native / Expo doesn't have native
EventSourceimplementation, so in order to use the realtime service you'll need to load aEventSourcepolyfill. 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;
