import React, { Component } from "react"; import { StyleSheet, Switch, Text, View } from "react-native"; const styles = StyleSheet.create({ complete: { textDecorationLine: "line-through" }, container: { alignItems: "flex-start", flexDirection: "row", justifyContent: "space-between", padding: 10 }, text: { color: "#4d4d4d", fontSize: 24 }, textWrap: { flex: 1, marginHorizontal: 10 } }); class Row extends Component { render() { // console.log("Row.render", this.props); const { complete } = this.props; return ( {this.props.text} ); } } Row.propTypes = { complete: React.PropTypes.bool, onComplete: React.PropTypes.func, text: React.PropTypes.string }; export default Row;