File tree 4 files changed +12
-12
lines changed
4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ PODS:
720
720
- RNPersonaInquiry2 (2.2.23):
721
721
- PersonaInquirySDK2 (= 2.3.9)
722
722
- React-Core
723
- - RNReactNativeHapticFeedback (1.14 .0):
723
+ - RNReactNativeHapticFeedback (2.2 .0):
724
724
- React-Core
725
725
- RNReanimated (2.17.0):
726
726
- DoubleConversion
@@ -1252,7 +1252,7 @@ SPEC CHECKSUMS:
1252
1252
RNLocalize: d4b8af4e442d4bcca54e68fc687a2129b4d71a81
1253
1253
RNPermissions: da2a4ded375aa8292d85ed93676e102c203d4717
1254
1254
RNPersonaInquiry2: 3ab52078e891a5d2fa39bf7cc9119ca27f0337fd
1255
- RNReactNativeHapticFeedback: 1e3efeca9628ff9876ee7cdd9edec1b336913f8c
1255
+ RNReactNativeHapticFeedback: ec56a5f81c3941206fd85625fa669ffc7b4545f9
1256
1256
RNReanimated: f186e85d9f28c9383d05ca39e11dd194f59093ec
1257
1257
RNScreens: 93ae3be2f119d955620f9bbb39ad372adb53b7a9
1258
1258
RNSecureRandom: ff25041dd065a945810ca01a2bcd06f8d141b81d
Original file line number Diff line number Diff line change 159
159
"react-native-fs" : " ^2.20.0" ,
160
160
"react-native-gesture-handler" : " ^2.16.0" ,
161
161
"react-native-get-random-values" : " ^1.11.0" ,
162
- "react-native-haptic-feedback" : " ^1.14 .0" ,
162
+ "react-native-haptic-feedback" : " ^2.2 .0" ,
163
163
"react-native-image-crop-picker" : " ^0.40.3" ,
164
164
"react-native-in-app-review" : " ^4.3.3" ,
165
165
"react-native-keychain" : " ^8.1.3" ,
Original file line number Diff line number Diff line change 1
- import ReactNativeHapticFeedback from 'react-native-haptic-feedback'
1
+ import ReactNativeHapticFeedback , { HapticFeedbackTypes } from 'react-native-haptic-feedback'
2
2
import { hapticFeedbackEnabledSelector } from 'src/app/selectors'
3
3
import { store } from 'src/redux/store'
4
4
@@ -7,21 +7,21 @@ const options = {
7
7
ignoreAndroidSystemSettings : false ,
8
8
}
9
9
10
- const triggerHapticFeedback = ( type : ReactNativeHapticFeedback . HapticFeedbackTypes ) => {
10
+ const triggerHapticFeedback = ( type : HapticFeedbackTypes ) => {
11
11
const hapticFeedbackEnabled = hapticFeedbackEnabledSelector ( store . getState ( ) )
12
12
if ( hapticFeedbackEnabled ) {
13
13
ReactNativeHapticFeedback . trigger ( type , options )
14
14
}
15
15
}
16
16
17
17
export const vibrateInformative = ( ) => {
18
- triggerHapticFeedback ( ' impactMedium' )
18
+ triggerHapticFeedback ( HapticFeedbackTypes . impactMedium )
19
19
}
20
20
21
21
export const vibrateSuccess = ( ) => {
22
- triggerHapticFeedback ( ' notificationSuccess' )
22
+ triggerHapticFeedback ( HapticFeedbackTypes . notificationSuccess )
23
23
}
24
24
25
25
export const vibrateError = ( ) => {
26
- triggerHapticFeedback ( ' notificationError' )
26
+ triggerHapticFeedback ( HapticFeedbackTypes . notificationError )
27
27
}
Original file line number Diff line number Diff line change @@ -15229,10 +15229,10 @@ react-native-gradle-plugin@^0.71.19:
15229
15229
resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.71.19.tgz#3379e28341fcd189bc1f4691cefc84c1a4d7d232"
15230
15230
integrity sha512-1dVk9NwhoyKHCSxcrM6vY6cxmojeATsBobDicX0ZKr7DgUF2cBQRTKsimQFvzH8XhOVXyH8p4HyDSZNIFI8OlQ==
15231
15231
15232
- react-native-haptic-feedback@^1.14 .0:
15233
- version "1.14 .0"
15234
- resolved "https://registry.yarnpkg.com/react-native-haptic-feedback/-/react-native-haptic-feedback-1.14 .0.tgz#b50f49dedda4980b3c37c5780823f753cf3ee717 "
15235
- integrity sha512-dSXZ6gAzl+W/L7BPjOpnT0bx0cgQiSr0sB3DjyDJbGIdVr4ISaktZC6gC9xYFTv2kMq0+KtbKi+dpd0WtxYZMw ==
15232
+ react-native-haptic-feedback@^2.2 .0:
15233
+ version "2.2 .0"
15234
+ resolved "https://registry.yarnpkg.com/react-native-haptic-feedback/-/react-native-haptic-feedback-2.2 .0.tgz#bc46edd1f053265bfbe6c32487cbce074e099429 "
15235
+ integrity sha512-3tqJOjCguWhIrX0nkURn4yw6kXdsSDjjrvZCRjKXYGlL28hdQmoW2okAHduDTD9FWj9lA+lHgwFWgGs4aFNN7A ==
15236
15236
15237
15237
react-native-image-crop-picker@^0.40.3:
15238
15238
version "0.40.3"
You can’t perform that action at this time.
0 commit comments