Skip to content

Commit

Permalink
chore: adjust haptic feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
castdrian committed Feb 23, 2024
1 parent 2876cfd commit 271e6be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions apps/expo/src/app/(tabs)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ export default function TabLayout() {
}}
screenListeners={({ route }) => ({
tabPress: () => {
void Haptics.notificationAsync(
Haptics.NotificationFeedbackType.Success,
);
void Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
switch (route.name) {
case "search":
focusSearchInputRef.current();
Expand Down
2 changes: 1 addition & 1 deletion apps/expo/src/components/player/VideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const VideoPlayer = () => {

const updateResizeMode = (newMode: ResizeMode) => {
setResizeMode(newMode);
void Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success);
void Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
};

const pinchGesture = Gesture.Pinch().onUpdate((e) => {
Expand Down

0 comments on commit 271e6be

Please sign in to comment.