mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
Merge pull request #442 from selfxyz/justin/increase-ios-haptic-feedback
increase feedback intensity on ios
This commit is contained in:
@@ -47,6 +47,12 @@ export const triggerFeedback = (
|
||||
const mergedOptions = { ...defaultOptions, ...options };
|
||||
|
||||
if (Platform.OS === 'ios') {
|
||||
// increase feedback intensity for iOS
|
||||
if (type === 'impactLight') {
|
||||
type = 'impactMedium';
|
||||
} else if (type === 'impactMedium') {
|
||||
type = 'impactHeavy';
|
||||
}
|
||||
ReactNativeHapticFeedback.trigger(type, {
|
||||
enableVibrateFallback: mergedOptions.enableVibrateFallback,
|
||||
ignoreAndroidSystemSettings: mergedOptions.ignoreAndroidSystemSettings,
|
||||
|
||||
Reference in New Issue
Block a user