mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
ADD: haptic feedback when the user only has 1 wallet
This commit is contained in:
parent
e4e91d15c7
commit
ffda142327
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,7 @@ import {
|
|||
} from '../../BlueComponents';
|
||||
import { Icon } from 'react-native-elements';
|
||||
import { NavigationEvents } from 'react-navigation';
|
||||
import ReactNativeHapticFeedback from 'react-native-haptic-feedback';
|
||||
import PropTypes from 'prop-types';
|
||||
const BigNumber = require('bignumber.js');
|
||||
let EV = require('../../events');
|
||||
|
@ -215,6 +216,8 @@ export default class WalletsList extends Component {
|
|||
handleLongPress = () => {
|
||||
if (BlueApp.getWallets().length > 1) {
|
||||
this.props.navigation.navigate('ReorderWallets');
|
||||
} else {
|
||||
ReactNativeHapticFeedback.trigger('notificationError', false);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue