Skip to content

Unable to Fullscreen using React #19

Description

@alexedtionweb

I'm trying to use this method inside a React App
.withTarget("Test")
but it no works, how to set the chat fullscreen using react?

example:
import React from "react";
import ReactDOM from "react-dom";
import { BlipChat } from "blip-chat-widget";
class App extends React.Component {
componentDidMount() {
var BlipClient = new BlipChat()
.withAppKey(
"AppKey"
)
.withAccount({
fullName: "UserName",
extras: {
code: ""
}
})
.withTarget("Test")
.withEventHandler(BlipChat.CREATE_ACCOUNT_EVENT, function() {
BlipClient.sendMessage("");
});
BlipClient.build();
}
render() {
return (
<>



</>
);
}
}

const rootElement = document.getElementById("root");
ReactDOM.render(, rootElement);

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