New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@progressdb/react-native

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progressdb/react-native

React Native hooks and provider for ProgressDB frontend SDK

latest
npmnpm
Version
0.2.5
Version published
Maintainers
1
Created
Source

@progressdb/react-native

ProgressDB React Native SDK with provider and hooks.

Installation

npm install @progressdb/react-native @progressdb/js @react-native-async-storage/async-storage

Quick Start

import React from 'react';
import { View, Text } from 'react-native';
import ProgressDBProvider, { useMessages } from '@progressdb/react-native';

function MessagesView({ threadId }: { threadId: string }){
  const { messages, loading, refresh, create } = useMessages(threadId);
  
  if (loading) {
    return <Text>Loading messages...</Text>;
  }
  
  return (
    <View>
      {messages?.map(message => (
        <Text key={message.key}>{message.content}</Text>
      ))}
    </View>
  );
}

export default function App(){
  return (
    <ProgressDBProvider
      options={{ baseUrl: 'https://api.example.com', apiKey: 'FRONTEND_API_KEY' }}
      getUserSignature={async () => ({ userId: 'user123', signature: 'signature' })}
    >
      <MessagesView threadId="t1" />
    </ProgressDBProvider>
  );
}

API

Provider

  • ProgressDBProvider - Wrap app with provider

Hooks

  • useProgressClient() - Get client instance
  • useUserSignature() - Get user signature
  • useMessages(threadKey, query) - List messages in thread
  • useMessage(threadKey, messageKey) - Get single message
  • useThreads(query) - List threads
  • useHealthz() - Basic health check
  • useReadyz() - Readiness check with version

Keywords

progressdb

FAQs

Package last updated on 09 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts