From 4ff57fc63e95b6628ba74a0d363cc7a60ca0cf13 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Date: Wed, 18 Sep 2019 22:57:03 -0400 Subject: [PATCH] ADD: Press and hold to expand transaction memo. --- BlueComponents.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/BlueComponents.js b/BlueComponents.js index 9b0344558..8b99647bc 100644 --- a/BlueComponents.js +++ b/BlueComponents.js @@ -1392,7 +1392,7 @@ export class BlueTransactionListItem extends Component { itemPriceUnit: BitcoinUnit.BTC, }; - state = { transactionTimeToReadable: '...' }; + state = { transactionTimeToReadable: '...', subtitleNumberOfLines: 1 }; txMemo = () => { if (BlueApp.tx_metadata[this.props.item.hash] && BlueApp.tx_metadata[this.props.item.hash]['memo']) { @@ -1562,13 +1562,21 @@ export class BlueTransactionListItem extends Component { }); } + onLongPress = () => { + if (this.state.subtitleNumberOfLines === 1) { + this.setState({ subtitleNumberOfLines: 0 }); + } + }; + render() { return (