React Native Xmpp

screenshot of React Native Xmpp

React Native Xmpp

XMPP library for React Native (iOS and Android native support)


The react-native-xmpp is an XMPP library designed for React Native, providing a simple interface for native XMPP communication on both iOS and Android platforms.


  • Cross-platform Support: Works on both iOS and Android devices.
  • Flux Architecture: Utilizes a Flux approach for communication with XMPP servers.
  • Easy Integration: Simple and straightforward installation process.


Getting Started

  1. Install the react-native-xmpp package via npm:
    npm install react-native-xmpp --save

iOS Installation

  1. Install the latest XMPPFramework by adding the following line to your Podfile:
    pod 'XMPPFramework', :git => '', :branch => 'master'
  2. Add the RNXMPP package by including:
    pod 'RNXMPP', :path => '../node_modules/react-native-xmpp'
  3. In case of issues with XCode 9.3, consider using the older version of XMPPFramework and KissXML:
    pod 'XMPPFramework', '~> 3.7.0'
    pod 'KissXML', :git => "", :branch => '5.1.4'

Android Installation

  1. Link react-native-xmpp to your Android project by running:
    react-native link react-native-xmpp
  2. If linking does not work as expected, make the following changes:
    • Update android/settings.gradle
    • Update android/app/build.gradle
    • In, add the ReactVideoPackage class to the list of exported packages.


react-native-xmpp is a versatile XMPP library that provides a straightforward approach to implementing native XMPP communication in cross-platform React Native applications. With support for both iOS and Android platforms and a Flux-based architecture for server communication, it offers an easy-to-integrate solution for developers seeking XMPP capabilities in their projects.

React Native

React Native is a framework for building mobile applications using React and JavaScript. It enables developers to write once and deploy to multiple platforms, including iOS, Android, and the web, while providing a native app-like experience to users.