mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 22:02:24 -06:00
22 lines
612 B
JavaScript
22 lines
612 B
JavaScript
import React, { Component } from 'react';
|
|
|
|
import { AppRegistry, Window, App, Button, Picker, View } from 'proton-native';
|
|
|
|
class Example extends Component {
|
|
render() {
|
|
return (
|
|
<App>
|
|
<Window style={{ height: '50%', width: '10%' }}>
|
|
<View>
|
|
<Button title="Hello" onPress={() => console.log('Pressed')} />
|
|
<Picker onValueChange={(i, text) => console.log(i, text)}>
|
|
<Picker.Item label="Item1" value="i1" />
|
|
</Picker>
|
|
</View>
|
|
</Window>
|
|
</App>
|
|
);
|
|
}
|
|
}
|
|
|
|
AppRegistry.registerComponent('example', <Example />);
|