From 41da18552209f0e0eda93a68de0fbcf89b8c98d2 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Date: Tue, 13 Aug 2019 19:08:38 -0400 Subject: [PATCH] ADD: Handoff for a transaction and wallets --- ios/Podfile.lock | 6 ++++++ loc/en.js | 2 +- loc/es.js | 2 +- package-lock.json | 4 ++++ package.json | 1 + screen/transactions/transactionStatus.js | 6 ++++++ screen/wallets/transactions.js | 6 ++++++ 7 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index c72188470..2e3cdf334 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -131,6 +131,8 @@ PODS: - React - RNGestureHandler (1.3.0): - React + - RNHandoff (0.0.3): + - React - RNRate (1.0.1): - React - RNShare (2.0.0): @@ -190,6 +192,7 @@ DEPENDENCIES: - RNDeviceInfo (from `../node_modules/react-native-device-info`) - RNFS (from `../node_modules/react-native-fs`) - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) + - RNHandoff (from `../node_modules/react-native-handoff`) - RNRate (from `../node_modules/react-native-rate/ios`) - RNShare (from `../node_modules/react-native-share`) - RNSVG (from `../node_modules/react-native-svg`) @@ -281,6 +284,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native-fs" RNGestureHandler: :path: "../node_modules/react-native-gesture-handler" + RNHandoff: + :path: "../node_modules/react-native-handoff" RNRate: :path: "../node_modules/react-native-rate/ios" RNShare: @@ -339,6 +344,7 @@ SPEC CHECKSUMS: RNDeviceInfo: a88be26a64ada7cbc2bc0ebbd1662d340304874e RNFS: c9bbde46b0d59619f8e7b735991c60e0f73d22c1 RNGestureHandler: 5329a942fce3d41c68b84c2c2276ce06a696d8b0 + RNHandoff: d3b0754cca3a6bcd9b25f544f733f7f033ccf5fa RNRate: 29be49c24b314c4e8ec09d848c3965f61cb0be47 RNShare: 8b171d4b43c1d886917fdd303bf7a4b87167b05c RNSVG: 0eb087cfb5d7937be93c45b163b26352a647e681 diff --git a/loc/en.js b/loc/en.js index ebeb2ba8a..7d9218ca1 100644 --- a/loc/en.js +++ b/loc/en.js @@ -111,7 +111,7 @@ module.exports = { to: 'Output', copy: 'Copy', transaction_details: 'Transaction details', - show_in_block_explorer: 'Show in block explorer', + show_in_block_explorer: 'View in block explorer', }, }, send: { diff --git a/loc/es.js b/loc/es.js index 51f3eb657..74801327c 100644 --- a/loc/es.js +++ b/loc/es.js @@ -111,7 +111,7 @@ module.exports = { to: 'A', copy: 'Copiar', transaction_details: 'Detalles de la transacción', - show_in_block_explorer: 'Show in block explorer', + show_in_block_explorer: 'Mostrar en explorador de bloques', }, }, send: { diff --git a/package-lock.json b/package-lock.json index fe1f46745..4bc4c175c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10731,6 +10731,10 @@ "prop-types": "^15.5.10" } }, + "react-native-handoff": { + "version": "git+https://github.com/marcosrdz/react-native-handoff.git#05fc7dee3843d8c8ae150c0def753d4a9322230e", + "from": "git+https://github.com/marcosrdz/react-native-handoff.git" + }, "react-native-haptic-feedback": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/react-native-haptic-feedback/-/react-native-haptic-feedback-1.7.1.tgz", diff --git a/package.json b/package.json index 0fdb6fd94..2c49670b1 100644 --- a/package.json +++ b/package.json @@ -89,6 +89,7 @@ "react-native-flexi-radio-button": "0.2.2", "react-native-fs": "2.13.3", "react-native-gesture-handler": "1.3.0", + "react-native-handoff": "git+https://github.com/marcosrdz/react-native-handoff.git", "react-native-haptic-feedback": "1.7.1", "react-native-image-picker": "0.28.1", "react-native-level-fs": "3.0.1", diff --git a/screen/transactions/transactionStatus.js b/screen/transactions/transactionStatus.js index d921c01cb..720f009de 100644 --- a/screen/transactions/transactionStatus.js +++ b/screen/transactions/transactionStatus.js @@ -16,6 +16,7 @@ import PropTypes from 'prop-types'; import { HDSegwitBech32Transaction, HDSegwitBech32Wallet } from '../../class'; import { BitcoinUnit } from '../../models/bitcoinUnits'; import { Icon } from 'react-native-elements'; +import Handoff from 'react-native-handoff'; /** @type {AppStorage} */ let BlueApp = require('../../BlueApp'); let loc = require('../../loc'); @@ -142,6 +143,11 @@ export default class TransactionsStatus extends Component { return ( + diff --git a/screen/wallets/transactions.js b/screen/wallets/transactions.js index 930406e52..985881040 100644 --- a/screen/wallets/transactions.js +++ b/screen/wallets/transactions.js @@ -6,6 +6,7 @@ import { NavigationEvents } from 'react-navigation'; import { BlueSendButtonIcon, BlueReceiveButtonIcon, BlueTransactionListItem, BlueWalletNavigationHeader } from '../../BlueComponents'; import { Icon } from 'react-native-elements'; import { LightningCustodianWallet } from '../../class'; +import Handoff from 'react-native-handoff'; /** @type {AppStorage} */ let BlueApp = require('../../BlueApp'); let loc = require('../../loc'); @@ -208,6 +209,11 @@ export default class WalletTransactions extends Component { const { navigate } = this.props.navigation; return ( + { StatusBar.setBarStyle('light-content');