mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
582 B
582 B
Text
Displays some text.
import React, { Component } from 'react';
import { render, Window, App, Text } from 'proton-native';
class Example extends Component {
render() {
return (
<App>
<Window title="Example" size={{ w: 500, h: 500 }}>
<Text>Hello!</Text>
</Window>
</App>
);
}
}
render(<Example />);
Props
Reference
children
The text to display.
| Type | Required | Default |
|---|---|---|
| string | No | '' |