Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XMPP library for React Native Android

I need to integrate with xmpp server from react native application.I've found an existing library for react native iOS version (https://github.com/aksonov/react-native-xmpp) .

But I could not find any existing react native xmpp library for Android version.

Could someone please let me know if any library is available and point me towards it?

Is it possible to write a native android library for xmpp and then link it my React native code?

like image 765
CK1984 Avatar asked Oct 31 '22 01:10

CK1984


1 Answers

You can use a library like Smack on Android and expose it to react-native yourself. If you have some experience with Java it is usually not that difficult: native modules docs.

Without knowing too much about the libraries, I think the challenge would be to unify the api for iOS and Android. If you only want to support Android that would not be a problem. Otherwise ask the author of react-native-xmpp to integrate your Android code.

like image 99
Daniel Basedow Avatar answered Nov 15 '22 07:11

Daniel Basedow