Guest User

Untitled

a guest
May 21st, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. class App extends React.Component {
  2. constructor(props) {
  3. super(props);
  4. }
  5.  
  6. render() {
  7. return (
  8. <View style={styles.appContainer}>
  9. <TouchableHighlight onPress={() => {}} style={styles.button}>
  10. <View style={styles.btnContainer}>
  11. <Image source={require('./assets/ic_logout.png')} style={styles.icon} />
  12. <Text style={styles.btnText}>Log out</Text>
  13. </View>
  14. </TouchableHighlight>
  15. </View>
  16. )
  17. }
  18. }
  19.  
  20. const styles = StyleSheet.create({
  21. appContainer: {
  22. flex: 1,
  23. backgroundColor: 'lightgreen',
  24. alignItems: 'center',
  25. justifyContent: 'center'
  26. },
  27. btnContainer: {
  28. backgroundColor: '#1d2aba',
  29. paddingHorizontal: 60,
  30. paddingVertical: 10,
  31. flexDirection: 'row',
  32. alignItems: 'center',
  33. borderRadius: 5
  34. },
  35. button: {
  36. borderRadius: 5
  37. },
  38. icon: {
  39. transform: [{ rotate: '180deg'}],
  40. width: 25,
  41. height: 25
  42. },
  43. btnText: {
  44. textAlign: 'center',
  45. fontWeight: 'bold',
  46. fontSize: 16,
  47. color: 'white'
  48. }
  49. });
  50.  
  51. export default App;
Add Comment
Please, Sign In to add comment