
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@dittolive/react-native
Advanced tools
Disclaimer: This package is in alpha stage. While it is feature-rich and stable for many use cases, expect some rough edges and API changes before the official release.
Please note that the current version of this SDK has been validated exclusively on ARM-based iOS simulators using the aarch64
architecture and Android emulators running the arm64-v8a
architecture and supports syncing data only with Ditto Portal's online playground.
Ditto is a real-time database for mobile, web, IoT, and server apps that can magically sync data without the internet. This SDK allows React Native developers to integrate Ditto into their apps.
To install the alpha version of @dittolive/react-native
, run the following command:
npm install @dittolive/react-native
or
yarn add @dittolive/react-native
Important: This SDK’s required minSdkVersion
is 24.
To update, modify your android/build.gradle
:
buildscript {
ext {
// ... existing configuration
minSdkVersion = 24 // Modify version to 24
}
// ... rest of the buildscript
}
If you encounter an issue related to duplicate native libraries (libjsi.so
or others), you can resolve it by adding the following packagingOptions
in your android/app/build.gradle
file:
android {
// ... existing configuration
packagingOptions {
pickFirst 'lib/arm64-v8a/libjsi.so'
pickFirst 'lib/armeabi-v7a/libjsi.so'
pickFirst 'lib/x86/libjsi.so'
pickFirst 'lib/x86_64/libjsi.so'
}
}
import { Ditto } from '@dittolive/react-native';
const ditto = new Ditto({
appID: '<YOUR_APP_ID>',
token: '<YOUR_TOKEN>',
});
We've provided an example application to showcase the capabilities of Ditto React Native SDK. You can find practical implementations in the App.tsx
file of the example app (/example/src/App.tsx
). Be sure to replace your appID
and token
with values from the Ditto Portal.
Ditto React Native SDK is a commercial product. Please consult LICENSE.md
within this package for license details.
Copyright © 2023 DittoLive Incorporated. All rights reserved.
FAQs
React Native SDK to integrate Ditto.
We found that @dittolive/react-native demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.