import React from 'react'; import {View, TouchableHighlight, Text, StyleSheet} from 'react-native'; import SwipeableRow from "./SwipeableRow"; export default function TradeItem(props) { let showControls = props.onEdit || props.onDelete; if (showControls) return( ); else return } TradeItem.defaultProps = { trade: null, onPress: null, onEdit: null, onDelete: null }; export function Component(props) { const {trade, onPress, style} = props; return ( {trade.ticker} ); } const styles = StyleSheet.create({ wrapper: { flex: 1, padding: 8* 2, backgroundColor: "#FFF", flexDirection: "row", borderBottomWidth: StyleSheet.hairlineWidth, borderBottomColor:"#ccc", } });