mkuczera / react-native-haptic-feedback

React-Native Haptic Feedback for iOS with Android similar behaviour.
MIT License
861 stars 106 forks source link

In Samsung Galaxy phones not work #46

Closed dharmrajacharya closed 1 month ago

dharmrajacharya commented 4 years ago

That's working and confirmed on Nexus/Pixel phones, some Huawei, etc, but isn't working for Samsung Galaxy phones and we should cover this segment.

panda0603 commented 4 years ago

same here. Maybe we should figure out why for certain brands this doesn't work

fawazahmed-makeen commented 4 years ago

Try imapctMedium and above:

const hapticOptions = {
  enableVibrateFallback: false,
  ignoreAndroidSystemSettings: true,
};

const hapticTriggerType = Platform.select({
  ios: 'selection',
  android: 'impactMedium'
});

ReactNativeHapticFeedback.trigger(hapticTriggerType, hapticOptions)
Bardiamist commented 4 years ago

Faced with it

SebinLee commented 3 years ago

@fawazahmed-makeen It works on Galaxy Devices. Thanks.