/**
 * Created by BK on 21/06/16.
 *
 * @flow
 */

 'use strict';

 import React, { Component } from 'react';
 import {
     Text,
     View,
     TouchableHighlight,
     StyleSheet
 } from 'react-native';

 type Props = {
     row: {
         title: string,
         desc: string,
         reward: string,
         complete: string
     }
 }

 export default class TasksListRow extends Component {
     props: Props;

     render() {
         return (
             <TouchableHighlight>
                 <View style={styles.container}>
                     <View style={styles.leftColumn}>
                         <Text style={styles.title}>{this.props.row.title}</Text>
                         <Text style={styles.desc}>{this.props.row.desc}</Text>
                     </View>
                     <View style={styles.rightColumn}>
                         <Text style={styles.reward}>{this.props.row.reward}</Text>
                         <Text style={styles.complete}>{this.props.row.complete}</Text>
                     </View>
                 </View>
             </TouchableHighlight>
         );
     }
 }

 const styles = StyleSheet.create({
     container: {
         flex: 1,
         flexDirection: 'row',
         backgroundColor: '#dedede'
     },
     leftColumn: {
         flex: 1,
         backgroundColor: '#ededed',
         justifyContent: 'center',
         alignItems: 'center'
     },
     rightColumn: {
         flex: 1,
         justifyContent: 'center',
         alignItems: 'center'
     },
     title: {
         fontSize: 20,
     },
     desc: {

     },
     reward: {

     },
     complete: {

     }
 })

/**
 * Created by BK on 21/06/16.
 *
 * @flow
 */

 'use strict';

 import React, { Component } from 'react';
 import {
     Text,
     View,
     TouchableOpacity,
     StyleSheet
 } from 'react-native';

 type Props = {
     row: {
         title: string,
         desc: string,
         reward: string,
         complete: string
     }
 }

 export default class TasksListRow extends Component {
     props: Props;

     render() {
         return (
             <TouchableOpacity>
                 <View style={styles.container}>
                     <View style={styles.leftColumn}>
                         <Text style={styles.title}>{this.props.row.title}</Text>
                         <Text style={styles.desc}>{this.props.row.desc}</Text>
                     </View>
                     <View style={styles.rightColumn}>
                         <Text style={styles.reward}>{this.props.row.reward}</Text>
                         <Text style={styles.complete}>{this.props.row.complete}</Text>
                     </View>
                 </View>
             </TouchableOpacity>
         );
     }
 }

 const styles = StyleSheet.create({
     container: {
         flex: 1,
         flexDirection: 'row',
         backgroundColor: '#dedede'
     },
     leftColumn: {
         flex: 1,
         backgroundColor: '#ededed',
         justifyContent: 'center',
         alignItems: 'center'
     },
     rightColumn: {
         flex: 1,
         justifyContent: 'center',
         alignItems: 'center'
     },
     title: {
         fontSize: 20,
     },
     desc: {

     },
     reward: {

     },
     complete: {

     }
 })

Switch <TouchableHighlight> for simpler <TouchableOpacity>
Switch <TouchableHighlight> for simpler <TouchableOpacity>
