forked from Ivasoft/mattermost-mobile
* Animate backdrop opacity in slide up panel * Set delayLongPress to 75ms for post * Add haptic feedback on slide up of post options * Ease in slide up animation * Add haptic feedback to android * reduce long press delay for post options menu * helper function for haptic feedback * Add haptic feedback when opening post options menu * Patch haptic feedback RN module on Android * Fix tests * Move hapticFeedback call to SlideUpPanel * Decrease long press time for reaction
14 lines
832 B
Diff
14 lines
832 B
Diff
diff --git a/node_modules/react-native-haptic-feedback/android/src/main/java/com/mkuczera/RNReactNativeHapticFeedbackModule.java b/node_modules/react-native-haptic-feedback/android/src/main/java/com/mkuczera/RNReactNativeHapticFeedbackModule.java
|
|
index cc597e0..db3c3f9 100644
|
|
--- a/node_modules/react-native-haptic-feedback/android/src/main/java/com/mkuczera/RNReactNativeHapticFeedbackModule.java
|
|
+++ b/node_modules/react-native-haptic-feedback/android/src/main/java/com/mkuczera/RNReactNativeHapticFeedbackModule.java
|
|
@@ -39,7 +39,7 @@ public class RNReactNativeHapticFeedbackModule extends ReactContextBaseJavaModul
|
|
|
|
switch (type) {
|
|
case "impactLight":
|
|
- durations = new long[]{0, 20};
|
|
+ durations = new long[]{0, 5};
|
|
break;
|
|
case "impactMedium":
|
|
durations = new long[]{0, 40};
|