Skip to content

Can anyone provide sdk sample for Reactjs? #396

Open

Description

@marxyes

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

Activity

  1. samsonroymaben commented on Aug 26, 2020

    @samsonroymaben

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

  2. samsonroymaben commented on Aug 29, 2020

    @samsonroymaben
    import * as QB from "quickblox/quickblox";
    

    This will solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions