Vibrate on wrong confirmation passcode
This commit is contained in:
parent
4739963eb6
commit
ced514f712
|
@ -1,5 +1,6 @@
|
||||||
import React, { useState, useRef } from 'react';
|
import React, { useState, useRef } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import * as Haptics from 'expo-haptics';
|
||||||
|
|
||||||
import Base from './Base';
|
import Base from './Base';
|
||||||
import { TYPE } from './constants';
|
import { TYPE } from './constants';
|
||||||
|
@ -22,6 +23,7 @@ const PasscodeEnter = ({ theme, finishProcess }) => {
|
||||||
setStatus(TYPE.CHOOSE);
|
setStatus(TYPE.CHOOSE);
|
||||||
setSubtitle(I18n.t('Passcode_choose_error'));
|
setSubtitle(I18n.t('Passcode_choose_error'));
|
||||||
confirmRef?.current?.animate('shake');
|
confirmRef?.current?.animate('shake');
|
||||||
|
Haptics.notificationAsync(Haptics.NotificationFeedbackType.Error);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (status === TYPE.CONFIRM) {
|
if (status === TYPE.CONFIRM) {
|
||||||
|
|
Loading…
Reference in New Issue