Socket
Book a DemoInstallSign in
Socket

@dittolive/ditto-react-native-tools

Package Overview
Dependencies
Maintainers
24
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dittolive/ditto-react-native-tools

React Native library for Ditto tools integration

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
24
Created
Source

@dittolive/ditto-react-native-tools

React Native library for Ditto tools integration

Installation

npm install @dittolive/ditto-react-native-tools @dittolive/ditto

or

yarn add @dittolive/ditto-react-native-tools @dittolive/ditto

Platform Setup

After installing this library, you need to configure your React Native app for Ditto.

Please follow the official Ditto React Native quickstart guide: React Native Setup

Usage

import React from 'react';
import { DittoProvider, PeersList } from '@dittolive/ditto-react-native-tools';
import { Ditto } from '@dittolive/ditto';

// Initialize your Ditto instance
const ditto = new Ditto({
  type: 'offlinePlayground',
  appID: 'your-app-id',
  offlineToken: 'your-offline-token',
});

function App() {
  return (
    <DittoProvider ditto={ditto}>
      <PeersList 
        showConnectionDetails={true}
        emptyMessage="No peers discovered yet"
      />
    </DittoProvider>
  );
}

Example App

This repository includes a fully functional example app demonstrating all features. See the example directory for setup instructions and implementation details.

Keywords

react-native

FAQs

Package last updated on 07 Aug 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