mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
chore: adjust haptic feedback
This commit is contained in:
@@ -22,9 +22,7 @@ export default function TabLayout() {
|
|||||||
}}
|
}}
|
||||||
screenListeners={({ route }) => ({
|
screenListeners={({ route }) => ({
|
||||||
tabPress: () => {
|
tabPress: () => {
|
||||||
void Haptics.notificationAsync(
|
void Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
||||||
Haptics.NotificationFeedbackType.Success,
|
|
||||||
);
|
|
||||||
switch (route.name) {
|
switch (route.name) {
|
||||||
case "search":
|
case "search":
|
||||||
focusSearchInputRef.current();
|
focusSearchInputRef.current();
|
||||||
|
@@ -59,7 +59,7 @@ export const VideoPlayer = () => {
|
|||||||
|
|
||||||
const updateResizeMode = (newMode: ResizeMode) => {
|
const updateResizeMode = (newMode: ResizeMode) => {
|
||||||
setResizeMode(newMode);
|
setResizeMode(newMode);
|
||||||
void Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success);
|
void Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
||||||
};
|
};
|
||||||
|
|
||||||
const pinchGesture = Gesture.Pinch().onUpdate((e) => {
|
const pinchGesture = Gesture.Pinch().onUpdate((e) => {
|
||||||
|
Reference in New Issue
Block a user