Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react';
- import {
- AppRegistry,
- StyleSheet,
- Text,
- View,
- Navigator,
- TouchableOpacity,
- Image,
- Button
- } from 'react-native';
- import Actions from 'react-native-router-flux';
- import First from './First';
- export default class Home extends Component{
- componentWillMount() {
- }
- render(){
- return(
- <View>
- <View style={{height:220,backgroundColor:'#DCDCDC'}}>
- <Image style={{width:120,height:120,top:50,left:120,backgroundColor:'red'}}
- source={require('./download.png')} />
- </View>
- <View style={{top:30}}>
- <View style={{flexDirection: 'row', alignItems: 'center'}}>
- <TouchableOpacity style= { styles.views}
- onPress = {()=>{ Actions.First({customData: 'Hello!'}) }}>
- <Text style={{fontSize:20, textAlign:'center',color:'white',top:20}}> Profile </Text>
- </TouchableOpacity>
- <TouchableOpacity style= { styles.views1} >
- <Text style={{fontSize:20, textAlign:'center',color:'white',top:20}}> Health Tracker </Text>
- </TouchableOpacity>
- </View>
- </View>
- </View>
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement