@umituz/react-native-design-system 2.6.122 → 2.6.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.123",
|
|
4
4
|
"description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone and offline utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Pure business logic representation of errors and exceptions
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { generateUUID } from '
|
|
6
|
+
import { generateUUID } from '../../../uuid';
|
|
7
7
|
|
|
8
8
|
export type ExceptionSeverity = 'fatal' | 'error' | 'warning' | 'info';
|
|
9
9
|
export type ExceptionCategory = 'network' | 'validation' | 'authentication' | 'authorization' | 'business-logic' | 'system' | 'storage' | 'unknown';
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { StyleSheet, TouchableOpacity, View, type StyleProp, type ViewStyle } from 'react-native';
|
|
13
|
+
import * as Haptics from 'expo-haptics';
|
|
13
14
|
import { AtomicText, AtomicIcon } from '../../../../index';
|
|
14
15
|
import { useAppDesignTokens } from '../../../../index';
|
|
15
|
-
import { HapticService } from '@umituz/react-native-haptics';
|
|
16
16
|
import type { SwipeActionConfig } from '../../domain/entities/SwipeAction';
|
|
17
17
|
import { SwipeActionUtils } from '../../domain/entities/SwipeAction';
|
|
18
18
|
|
|
@@ -72,11 +72,11 @@ export const SwipeActionButton: React.FC<SwipeActionButtonProps> = ({
|
|
|
72
72
|
if (enableHaptics) {
|
|
73
73
|
const intensity = SwipeActionUtils.getHapticsIntensity(action);
|
|
74
74
|
if (intensity === 'Light') {
|
|
75
|
-
await
|
|
75
|
+
await Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
|
76
76
|
} else if (intensity === 'Medium') {
|
|
77
|
-
await
|
|
77
|
+
await Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium);
|
|
78
78
|
} else {
|
|
79
|
-
await
|
|
79
|
+
await Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|