quickblox-javascript-sdk icon indicating copy to clipboard operation
quickblox-javascript-sdk copied to clipboard

Can anyone provide sdk sample for Reactjs?

Open marxyes opened this issue 5 years ago • 3 comments

hello can any one provide react js example how to start with quickblox ingratiation with react js web app ? they have not provided any single document how to start with that. they have just mentioned React js but when you try Quick Start guide you will stuck at very initial stage where we declare var QB = require('quickblox');

I have also tried using import QB from 'quickblox'

but it dint work, it throwing error

./node_modules/quickblox/src/modules/chat/qbChat.js Module not found: Can't resolve 'nativescript-xmpp-client' in 'F:\Project\Hotel App\chatapp\chatapp\node_modules\quickblox\src\modules\chat'

I think they have problem with npm package . They have provide example for angular but not for Reactjs and vue js as they are market leader aswell. So please any one can help to start with this lib integration with react js web app. ?

marxyes avatar Aug 11 '20 15:08 marxyes

Same issue here ! Could anyone tell how do we solve it ?

samsonroymaben avatar Aug 26 '20 16:08 samsonroymaben

import * as QB from "quickblox/quickblox";

This will solve the issue.

samsonroymaben avatar Aug 29 '20 08:08 samsonroymaben

@marxyes Hello,

This is Nikolay from QuickBlox support.

Unfortunately, we do not provide support with React.JS.

However, you are free to use our Javascript documentation and samples: https://docs.quickblox.com/docs/js-quick-start https://github.com/QuickBlox/quickblox-javascript-sdk/tree/gh-pages/samples/chat

ghost avatar Oct 07 '21 15:10 ghost