/ably-js-react-native

React Native client library SDK for Ably realtime messaging service

Primary LanguageJavaScriptOtherNOASSERTION

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:

var realtime = require('ably').Realtime;

For the rest-only library:

var realtime = require('ably').Rest;

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

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

(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 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.
  • Run github_changelog_generator to automate the update of the CHANGELOG. Once the CHANGELOG update has completed, manually change the Unreleased heading and link with the current version number such as v1.0.0. Also ensure that the Full Changelog link points to the new version tag instead of the HEAD. Commit this change.
  • Add a tag and push to origin such as git tag v1.0.0 && git push origin v1.0.0
  • Visit https://github.com/ably/ably-js-react-native/tags and Add release notes for the release including links to the changelog entry.
  • 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.