Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can anyone provide sdk sample for Reactjs? #396

Open
marxyes opened this issue Aug 11, 2020 · 3 comments
Open

Can anyone provide sdk sample for Reactjs? #396

marxyes opened this issue Aug 11, 2020 · 3 comments

Comments

@marxyes
Copy link

marxyes commented Aug 11, 2020

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. ?

@samsonroymaben
Copy link

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

@samsonroymaben
Copy link

samsonroymaben commented Aug 29, 2020

import * as QB from "quickblox/quickblox";

This will solve the issue.

@ghost
Copy link

ghost commented Oct 7, 2021

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants