-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
react-nodegui use? #21
Comments
I forked the react-nodegui example and I added the plugin here: https://github.com/dimitarnestorov/react-nodegui-starter |
@DimitarNestorov you seem to have deleted the repository with the example; any chance you can throw it in a gist or add it as a comment here? |
A little futzing, and I found a working solution: import { hot, Window, Text } from "@nodegui/react-nodegui";
import React from "react";
import { setTitleBarStyle } from "@nodegui/plugin-title-bar";
class App extends React.Component {
constructor(props) {
super(props);
this.window = React.createRef();
}
componentDidMount() {
try {
setTitleBarStyle(this.window.current.native, 'hiddenInset');
} catch(err) {
console.error(err);
}
}
render() {
return (
<Window windowTitle="Hello 👋🏽" ref={this.window}>
<Text>Hello</Text>
</Window>
);
}
}
export default hot(App); |
for react-nodegui? help
The text was updated successfully, but these errors were encountered: