MCPcopy
hub / github.com/BlueWallet/BlueWallet / triggerHapticFeedback

Function triggerHapticFeedback

blue_modules/hapticFeedback.ts:16–25  ·  view source on GitHub ↗
(type: HapticFeedbackTypes)

Source from the content-addressed store, hash-verified

14}
15
16const triggerHapticFeedback = (type: HapticFeedbackTypes) => {
17 if (isDesktop) return;
18 DeviceInfo.getPowerState().then((state: Partial<PowerState>) => {
19 if (!state.lowPowerMode) {
20 ReactNativeHapticFeedback.trigger(type, { ignoreAndroidSystemSettings: false, enableVibrateFallback: true });
21 } else {
22 console.log('Haptic feedback not triggered due to low power mode.');
23 }
24 });
25};
26
27export const triggerSuccessHapticFeedback = () => {
28 triggerHapticFeedback(HapticFeedbackTypes.NotificationSuccess);

Callers 15

ManageWalletsListItemFunction · 0.85
onPressFunction · 0.85
AmountInputFunction · 0.85
Alert.tsFile · 0.85
PasswordInput.tsxFile · 0.85
AddressItemFunction · 0.85
StorageProviderFunction · 0.85
confirmWalletDeletionFunction · 0.85
handleShakeAnimationFunction · 0.85
runActionFunction · 0.85
handleSubmitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected