Is there any library to integrate react native and xmpp?

I am trying to build a chat application with XMPP backend(ejabberd). I found the following repo, which uses native iOS and android. But I prefer to use javascript clients to integrate with my UI built with gifted chat.

Strophejs is one of the most stable javascript xmpp client, but there seems to be no easy route to use it in react native. Here is an issue that talks on integration of expo with react native - I did look at conversejs and jsxc, they also do not have a straight forward integration.

Is there any other route to integrate react native with xmpp.

For the pure JS lib one, if you could polyfill the parts that assume a DOM environment, then I Don’t see why it wouldn’t work.

Polyfill worked, thank you!

hey @sid how you manage to do with polyfill ? can you give some reference code or anything which will help me.

I would really appreciate some hints @sid

Just to add another possibility to the list:

I have not tried any of these myself.

I’ve worked with it! It’s working for basic things, and there are plugins in development. Sadly, there is not much documentation about the plugins, they are available at GitHub - telldus/xmppjs-client-plugins

1 Like

Here i have shared two source url . it will help you integrate react native and xmpp
XMPP the best Choice for Build Chat platform! Explore XMPP Use cases