disable haptic toast
This commit is contained in:
+2
-2
@@ -4,7 +4,6 @@ import {impactAsync, ImpactFeedbackStyle} from 'expo-haptics'
|
|||||||
|
|
||||||
import {isIOS, isWeb} from '#/platform/detection'
|
import {isIOS, isWeb} from '#/platform/detection'
|
||||||
import {useHapticsDisabled} from '#/state/preferences/disable-haptics'
|
import {useHapticsDisabled} from '#/state/preferences/disable-haptics'
|
||||||
import * as Toast from '#/view/com/util/Toast'
|
|
||||||
|
|
||||||
export function useHaptics() {
|
export function useHaptics() {
|
||||||
const isHapticsDisabled = useHapticsDisabled()
|
const isHapticsDisabled = useHapticsDisabled()
|
||||||
@@ -23,7 +22,8 @@ export function useHaptics() {
|
|||||||
|
|
||||||
// DEV ONLY - show a toast when a haptic is meant to fire on simulator
|
// DEV ONLY - show a toast when a haptic is meant to fire on simulator
|
||||||
if (__DEV__ && !Device.isDevice) {
|
if (__DEV__ && !Device.isDevice) {
|
||||||
Toast.show(`Buzzz!`)
|
// disabled because it's annoying
|
||||||
|
// Toast.show(`Buzzz!`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[isHapticsDisabled],
|
[isHapticsDisabled],
|
||||||
|
|||||||
Reference in New Issue
Block a user