Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import {
  3. AppRegistry,
  4. StyleSheet,
  5. Text,
  6. View,
  7. Navigator,
  8. TouchableOpacity,
  9. Image,
  10. Button
  11. } from 'react-native';
  12. import Actions from 'react-native-router-flux';
  13.  
  14.  
  15. import First from './First';
  16.  
  17. export default class Home extends Component{
  18. componentWillMount() {
  19.  
  20. }
  21.  
  22.  
  23. render(){
  24. return(
  25. <View>
  26. <View style={{height:220,backgroundColor:'#DCDCDC'}}>
  27. <Image style={{width:120,height:120,top:50,left:120,backgroundColor:'red'}}
  28. source={require('./download.png')} />
  29. </View>
  30. <View style={{top:30}}>
  31. <View style={{flexDirection: 'row', alignItems: 'center'}}>
  32. <TouchableOpacity style= { styles.views}
  33. onPress = {()=>{ Actions.First({customData: 'Hello!'}) }}>
  34. <Text style={{fontSize:20, textAlign:'center',color:'white',top:20}}> Profile </Text>
  35. </TouchableOpacity>
  36.  
  37. <TouchableOpacity style= { styles.views1} >
  38. <Text style={{fontSize:20, textAlign:'center',color:'white',top:20}}> Health Tracker </Text>
  39. </TouchableOpacity>
  40. </View>
  41.  
  42.  
  43.  
  44. </View>
  45.  
  46.  
  47. </View>
  48. );
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement