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

Unable to Fullscreen using React #19

Open
alexedtionweb opened this issue Mar 20, 2020 · 0 comments
Open

Unable to Fullscreen using React #19

alexedtionweb opened this issue Mar 20, 2020 · 0 comments

Comments

@alexedtionweb
Copy link

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);

@alexedtionweb alexedtionweb changed the title Blip Chat how to fullscreen using React Unable to Fullscreen using React Mar 20, 2020
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

1 participant