mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-21 06:45:31 -06:00
40 lines
828 B
JavaScript
40 lines
828 B
JavaScript
import React, { Component } from 'react';
|
|
|
|
import {
|
|
App,
|
|
AppRegistry,
|
|
Window,
|
|
View,
|
|
Text,
|
|
TouchableWithoutFeedback,
|
|
TouchableOpacity,
|
|
TouchableHighlight,
|
|
Button,
|
|
Image,
|
|
TextInput,
|
|
} from './src/';
|
|
|
|
class Example extends Component {
|
|
state = {
|
|
test: 'dsdasdsa',
|
|
a: true,
|
|
};
|
|
componentDidMount() {
|
|
//setTimeout(() => this.setState({ test: "dsawewwww" }), 3000);
|
|
//setTimeout(() => this.setState({ a: false }), 3000);
|
|
}
|
|
render() {
|
|
return (
|
|
<App>
|
|
<Window style={{ height: '50%', width: '10%' }}>
|
|
<Image
|
|
style={{ height: '100%', width: '100%', resizeMode: 'repeat' }}
|
|
source={require('/home/kusti8/Pictures/test_small.jpg')}
|
|
/>
|
|
</Window>
|
|
</App>
|
|
);
|
|
}
|
|
}
|
|
|
|
AppRegistry.registerComponent('Test', <Example />);
|