Skip to content

Commit 93d56e3

Browse files
authored
Upgrades nodegui to 0.6.5 (#67)
1 parent 3d541e0 commit 93d56e3

File tree

3 files changed

+33
-24
lines changed

3 files changed

+33
-24
lines changed

package-lock.json

+22-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"react": "^16.9.0"
3232
},
3333
"devDependencies": {
34-
"@nodegui/nodegui": "^0.5.1",
34+
"@nodegui/nodegui": "^0.6.5",
3535
"@types/node": "^12.0.10",
3636
"prettier": "^1.18.2",
3737
"react": "^16.9.0",

src/demo.tsx

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
import React from "react";
22
import { Renderer, Button, Window, View } from "./index";
3+
34
const App = () => {
45
return (
56
<Window>
6-
<View>
7+
<View style={containerStyle}>
78
<Button style={buttonStyle} text={"Hello"} />
89
<Button style={buttonStyle} text={"World"} />
910
</View>
1011
</Window>
1112
);
1213
};
14+
15+
const containerStyle = `
16+
flex: 1;
17+
justify-content:'center';
18+
border: 1px solid blue;
19+
padding: 10;
20+
`;
1321
const buttonStyle = `
1422
color: white;
1523
`;
24+
1625
Renderer.render(<App />);

0 commit comments

Comments
 (0)