Socket
Socket
Sign inDemoInstall

ably-react-native

Package Overview
Dependencies
44
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ably-react-native

React Native wrapper for the JavaScript realtime client library for Ably.io, the realtime messaging service


Version published
Weekly downloads
22
decreased by-15.38%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Ably

A React Native client library for Ably Realtime, a realtime data delivery platform.

This repo is a wrapper for the ably-js client library which introduces a dependency needed by React Native. See the ably-js README for usage details of the ably-js client library.

For complete API documentation, see the Ably Realtime documentation.

How to use this library

Installation from npm

npm install ably-react-native

Usage

For the Realtime library:

import * as Ably from 'ably'
const realtime = new Ably.Realtime(<options or api key>)

// Or if using a toolchain that doesn't support ES6 module syntax:
const Ably = require('ably');
const client = new Ably.Realtime(<options or api key>);

For the REST-only library:

import * as Ably from 'ably'
const realtime = new Ably.Rest(<options or api key>)

// Or if using a toolchain that doesn't support ES6 module syntax:
const Ably = require('ably');
const client = new Ably.Rest(<options or api key>);

For very old versions of React Native, which do not support the react-native automatic entrypoint, you may have to instead do

var Ably = require('ably/browser/static/ably-reactnative.js');

(and similarly for Rest)

API usage, tests, contributing, etc.

See the ably-js repo.

FAQs

Is this repo actively maintained?

Yes, this repo typically has very fwe recent commits because this React Native repo doesn't do very much: it's a very thin wrapper around the ably-js repo.

Does this repo support all platforms supported by React Native?

Yes, as far as we know. If you find any issues, please raise an issue (in this repo only for issues specific to react-native or this wrapper; all other issues should go in the main ably-js repo) or contact us

Release process

This library uses semantic versioning. For each release, the following needs to be done:

  • Update the version number by running npm version <type> (see docs) and commit the change.
  • Add a tag and push to origin such as git tag v1.0.0 && git push origin v1.0.0
  • Run npm publish to publish the gem to npm

License

Copyright (c) 2016 Ably Real-time Ltd, Licensed under the Apache License, Version 2.0. Refer to LICENSE for the license terms.

FAQs

Last updated on 06 Feb 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc