0.1.6 • Published 3 years ago
react-pocketbase-hooks
Licence
MIT
Version
0.1.6
Deps
8
Size
388 kB
Vulns
0
Weekly
0
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 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;