Function: hapticFeedback
▸ hapticFeedback(type): void
앱에 진동을 발생시킵니다. param의 type에 따라 진동의 세기가 조절됩니다. isHapticFeedbackMessage로 필터링을 진행합니다.
Parameters
| Name | Type |
|---|---|
type | "impactLight" | "impactMedium" | "impactHeavy" |
Returns
void
Example
const onHaptic = useCallback(() => {
hapticFeedback('impactMedium')
}, [])