Vibrate on wrong confirmation passcode

This commit is contained in:
Diego Mello 2020-04-24 17:09:06 -03:00
parent 4739963eb6
commit ced514f712
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import React, { useState, useRef } from 'react';
import PropTypes from 'prop-types';
import * as Haptics from 'expo-haptics';
import Base from './Base';
import { TYPE } from './constants';
@ -22,6 +23,7 @@ const PasscodeEnter = ({ theme, finishProcess }) => {
setStatus(TYPE.CHOOSE);
setSubtitle(I18n.t('Passcode_choose_error'));
confirmRef?.current?.animate('shake');
Haptics.notificationAsync(Haptics.NotificationFeedbackType.Error);
};
if (status === TYPE.CONFIRM) {