stompjs icon indicating copy to clipboard operation
stompjs copied to clipboard

how to stompjs use with react native

Open Shubham8507 opened this issue 1 year ago • 1 comments

Please see FAQs at https://stomp-js.github.io/faqs/2019/05/20/faqs.html before reporting. Can you please explain the stompjs example with react native or version

Shubham8507 avatar Jul 20 '23 11:07 Shubham8507

The closest I can recommend is a contributed sample App for using React with stompjs. Please see https://github.com/stomp-js/rx-stomp-react-sample. There is a tutorial.md file as well.

It has been reported to work. However, I have not validated it myself.

In addition, there is some helpful contributed information compiled at https://stomp-js.github.io/workaround/stompjs/rx-stomp/react-native-additional-notes.html.

kum-deepak avatar Jul 20 '23 15:07 kum-deepak

place this inside index.js or App.jsx

import {TextEncoder} from 'text-encoding';

global.TextEncoder = TextEncoder;

iib0011 avatar Jun 29 '24 02:06 iib0011