Last active
May 4, 2018 05:18
-
-
Save crissmoldovan/6a27cd2050d018c085c01f5cd5d2f690 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { View, Text, Image, StyleSheet } from 'react-native' | |
export default class HelloWorld extends Component { | |
render() { | |
return ( | |
<View style={styles.Main}> | |
<Text style={styles.Hello}>Hello World</Text> | |
<Image source={require('/static/hello-world_world.png')} style={styles.World} /> | |
</View> | |
) | |
} | |
} | |
const styles = StyleSheet.create({ | |
Main: { | |
position: 'absolute', | |
top: 242, | |
left: 335, | |
width: 395, | |
height: 190, | |
border: [ | |
{ | |
width: 1, | |
style: 'inset', | |
color: '#979797ff' | |
} | |
], | |
background: { | |
color: '#b0f3d0ff' | |
} | |
}, | |
Hello: { | |
position: 'absolute', | |
top: 265, | |
left: 455, | |
width: 155, | |
height: 36, | |
fontSize: 30, | |
fontFamily: 'Helvetica Light' | |
}, | |
World: { | |
position: 'absolute', | |
top: 286, | |
left: 402, | |
width: 261, | |
height: 161 | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment