mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
24 lines
No EOL
568 B
JavaScript
24 lines
No EOL
568 B
JavaScript
import React, { Component } from 'react';
|
|
|
|
import { render, Window, App, Button } from 'reactor-native';
|
|
|
|
class Example extends Component {
|
|
state = { name: true };
|
|
render() {
|
|
return (
|
|
<App>
|
|
<Window name="Example" height={300} width={300} menuBar={false}>
|
|
<Button
|
|
stretchy={false}
|
|
onClicked={() => console.log("Hello")}
|
|
>
|
|
Button
|
|
</Button>
|
|
</Window>
|
|
</App>
|
|
);
|
|
}
|
|
}
|
|
|
|
// This will create a file 'text.docx' in the current directory!
|
|
render(<Example />); |