Skip to content

Commit 4ddb49d

Browse files
renovate[bot]satish-ravivalora-bot
authored andcommitted
fix(deps): update dependency react-native-haptic-feedback to v2 (valora-inc#5292)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [react-native-haptic-feedback](https://togithub.com/mkuczera/react-native-haptic-feedback) | [`^1.14.0` -> `^2.2.0`](https://renovatebot.com/diffs/npm/react-native-haptic-feedback/1.14.0/2.2.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/react-native-haptic-feedback/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-native-haptic-feedback/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-native-haptic-feedback/1.14.0/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-native-haptic-feedback/1.14.0/2.2.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>mkuczera/react-native-haptic-feedback (react-native-haptic-feedback)</summary> ### [`v2.2.0`](https://togithub.com/mkuczera/react-native-haptic-feedback/releases/tag/v2.2.0): Fixing failure releases [Compare Source](https://togithub.com/mkuczera/react-native-haptic-feedback/compare/52bc4342fd30422c018066783c92379d7b37f5c7...v2.2.0) Due to some major changes in v2 they introduced a lot of issues, especially regarding Android. The previous versions are deprecated and 2.2.0 should be considered as latest. Thanks to - [@&#8203;rajaasim](https://togithub.com/rajaasim) - [@&#8203;yunchanpark](https://togithub.com/yunchanpark) \[[#&#8203;111](https://togithub.com/mkuczera/react-native-haptic-feedback/issues/111) ]\(fix: RNReactNativeHapticFeedbackPackage.java missing import) - [@&#8203;abuciuman](https://togithub.com/abuciuman) \[[#&#8203;109](https://togithub.com/mkuczera/react-native-haptic-feedback/issues/109) ]\(Refactor: Align Package Name with Directory Structure for vibrateFactory) - [@&#8203;NotArtyom](https://togithub.com/NotArtyom) \[[#&#8203;102](https://togithub.com/mkuczera/react-native-haptic-feedback/issues/102)]\(FIX: iOS build issues with new architecture) - [@&#8203;Lavegaa](https://togithub.com/Lavegaa) \[[#&#8203;108](https://togithub.com/mkuczera/react-native-haptic-feedback/issues/108)]\(Fix Android Vibration enable condition) - [@&#8203;alexhernandez](https://togithub.com/alexhernandez) \[[#&#8203;105](https://togithub.com/mkuczera/react-native-haptic-feedback/issues/105) ]\(Android RN 72 Support - Update build.gradle w/ Namespace) - [@&#8203;thenishantgiri](https://togithub.com/thenishantgiri) \[[#&#8203;110](https://togithub.com/mkuczera/react-native-haptic-feedback/issues/110)]\(🚀 Revamped Documentation: Clearer Instructions, Enhanced Formatting, and Improved Readability ) ### [`v2.1.0`](https://togithub.com/mkuczera/react-native-haptic-feedback/compare/d9bfa28b6d043967a88148383d57b165c1095e46...52bc4342fd30422c018066783c92379d7b37f5c7) [Compare Source](https://togithub.com/mkuczera/react-native-haptic-feedback/compare/d9bfa28b6d043967a88148383d57b165c1095e46...52bc4342fd30422c018066783c92379d7b37f5c7) ### [`v2.0.3`](https://togithub.com/mkuczera/react-native-haptic-feedback/compare/d0f20959ef982fb30bf0ddcd7c156994c657f034...d9bfa28b6d043967a88148383d57b165c1095e46) [Compare Source](https://togithub.com/mkuczera/react-native-haptic-feedback/compare/d0f20959ef982fb30bf0ddcd7c156994c657f034...d9bfa28b6d043967a88148383d57b165c1095e46) ### [`v2.0.2`](https://togithub.com/mkuczera/react-native-haptic-feedback/compare/31c45a21128639f18ef6197b30544cb43370bef3...d0f20959ef982fb30bf0ddcd7c156994c657f034) [Compare Source](https://togithub.com/mkuczera/react-native-haptic-feedback/compare/31c45a21128639f18ef6197b30544cb43370bef3...d0f20959ef982fb30bf0ddcd7c156994c657f034) ### [`v2.0.1`](https://togithub.com/mkuczera/react-native-haptic-feedback/compare/v2.0.0...31c45a21128639f18ef6197b30544cb43370bef3) [Compare Source](https://togithub.com/mkuczera/react-native-haptic-feedback/compare/v2.0.0...31c45a21128639f18ef6197b30544cb43370bef3) ### [`v2.0.0`](https://togithub.com/mkuczera/react-native-haptic-feedback/releases/tag/v2.0.0): New Arch support [Compare Source](https://togithub.com/mkuczera/react-native-haptic-feedback/compare/v1.14.0...v2.0.0) #### What's Changed ##### Main changes: - New architecture support by [@&#8203;j-piasecki](https://togithub.com/j-piasecki) in [https://github.com/mkuczera/react-native-haptic-feedback/pull/90](https://togithub.com/mkuczera/react-native-haptic-feedback/pull/90) - Update to Fabric by [@&#8203;hansdesmedt](https://togithub.com/hansdesmedt) in [https://github.com/mkuczera/react-native-haptic-feedback/pull/89](https://togithub.com/mkuczera/react-native-haptic-feedback/pull/89) ##### Further changes - android installation part updated on Readme file by [@&#8203;elmirsmylv](https://togithub.com/elmirsmylv) in [https://github.com/mkuczera/react-native-haptic-feedback/pull/83](https://togithub.com/mkuczera/react-native-haptic-feedback/pull/83) - Updates the TypeScript definition by [@&#8203;matiaskorhonen](https://togithub.com/matiaskorhonen) in [https://github.com/mkuczera/react-native-haptic-feedback/pull/86](https://togithub.com/mkuczera/react-native-haptic-feedback/pull/86) - [#&#8203;47](https://togithub.com/mkuczera/react-native-haptic-feedback/issues/47) Add default haptic feedback for iPhone 6s or IPhone6S Plus. by [@&#8203;Romick2005](https://togithub.com/Romick2005) in [https://github.com/mkuczera/react-native-haptic-feedback/pull/80](https://togithub.com/mkuczera/react-native-haptic-feedback/pull/80) #### New Contributors - [@&#8203;elmirsmylv](https://togithub.com/elmirsmylv) made their first contribution in [https://github.com/mkuczera/react-native-haptic-feedback/pull/83](https://togithub.com/mkuczera/react-native-haptic-feedback/pull/83) - [@&#8203;matiaskorhonen](https://togithub.com/matiaskorhonen) made their first contribution in [https://github.com/mkuczera/react-native-haptic-feedback/pull/86](https://togithub.com/mkuczera/react-native-haptic-feedback/pull/86) - [@&#8203;Romick2005](https://togithub.com/Romick2005) made their first contribution in [https://github.com/mkuczera/react-native-haptic-feedback/pull/80](https://togithub.com/mkuczera/react-native-haptic-feedback/pull/80) - [@&#8203;j-piasecki](https://togithub.com/j-piasecki) made their first contribution in [https://github.com/mkuczera/react-native-haptic-feedback/pull/90](https://togithub.com/mkuczera/react-native-haptic-feedback/pull/90) - [@&#8203;hansdesmedt](https://togithub.com/hansdesmedt) made their first contribution in [https://github.com/mkuczera/react-native-haptic-feedback/pull/89](https://togithub.com/mkuczera/react-native-haptic-feedback/pull/89) **Full Changelog**: mkuczera/react-native-haptic-feedback@v1.14.0...v2.0.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone America/Los_Angeles. 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/valora-inc/wallet). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJucG0iLCJyZW5vdmF0ZSJdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Satish Ravi <[email protected]> Co-authored-by: valora-bot <[email protected]>
1 parent 1beaf30 commit 4ddb49d

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

ios/Podfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ PODS:
720720
- RNPersonaInquiry2 (2.2.23):
721721
- PersonaInquirySDK2 (= 2.3.9)
722722
- React-Core
723-
- RNReactNativeHapticFeedback (1.14.0):
723+
- RNReactNativeHapticFeedback (2.2.0):
724724
- React-Core
725725
- RNReanimated (2.17.0):
726726
- DoubleConversion
@@ -1252,7 +1252,7 @@ SPEC CHECKSUMS:
12521252
RNLocalize: d4b8af4e442d4bcca54e68fc687a2129b4d71a81
12531253
RNPermissions: da2a4ded375aa8292d85ed93676e102c203d4717
12541254
RNPersonaInquiry2: 3ab52078e891a5d2fa39bf7cc9119ca27f0337fd
1255-
RNReactNativeHapticFeedback: 1e3efeca9628ff9876ee7cdd9edec1b336913f8c
1255+
RNReactNativeHapticFeedback: ec56a5f81c3941206fd85625fa669ffc7b4545f9
12561256
RNReanimated: f186e85d9f28c9383d05ca39e11dd194f59093ec
12571257
RNScreens: 93ae3be2f119d955620f9bbb39ad372adb53b7a9
12581258
RNSecureRandom: ff25041dd065a945810ca01a2bcd06f8d141b81d

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
"react-native-fs": "^2.20.0",
160160
"react-native-gesture-handler": "^2.16.0",
161161
"react-native-get-random-values": "^1.11.0",
162-
"react-native-haptic-feedback": "^1.14.0",
162+
"react-native-haptic-feedback": "^2.2.0",
163163
"react-native-image-crop-picker": "^0.40.3",
164164
"react-native-in-app-review": "^4.3.3",
165165
"react-native-keychain": "^8.1.3",

src/styles/hapticFeedback.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ReactNativeHapticFeedback from 'react-native-haptic-feedback'
1+
import ReactNativeHapticFeedback, { HapticFeedbackTypes } from 'react-native-haptic-feedback'
22
import { hapticFeedbackEnabledSelector } from 'src/app/selectors'
33
import { store } from 'src/redux/store'
44

@@ -7,21 +7,21 @@ const options = {
77
ignoreAndroidSystemSettings: false,
88
}
99

10-
const triggerHapticFeedback = (type: ReactNativeHapticFeedback.HapticFeedbackTypes) => {
10+
const triggerHapticFeedback = (type: HapticFeedbackTypes) => {
1111
const hapticFeedbackEnabled = hapticFeedbackEnabledSelector(store.getState())
1212
if (hapticFeedbackEnabled) {
1313
ReactNativeHapticFeedback.trigger(type, options)
1414
}
1515
}
1616

1717
export const vibrateInformative = () => {
18-
triggerHapticFeedback('impactMedium')
18+
triggerHapticFeedback(HapticFeedbackTypes.impactMedium)
1919
}
2020

2121
export const vibrateSuccess = () => {
22-
triggerHapticFeedback('notificationSuccess')
22+
triggerHapticFeedback(HapticFeedbackTypes.notificationSuccess)
2323
}
2424

2525
export const vibrateError = () => {
26-
triggerHapticFeedback('notificationError')
26+
triggerHapticFeedback(HapticFeedbackTypes.notificationError)
2727
}

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -15229,10 +15229,10 @@ react-native-gradle-plugin@^0.71.19:
1522915229
resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.71.19.tgz#3379e28341fcd189bc1f4691cefc84c1a4d7d232"
1523015230
integrity sha512-1dVk9NwhoyKHCSxcrM6vY6cxmojeATsBobDicX0ZKr7DgUF2cBQRTKsimQFvzH8XhOVXyH8p4HyDSZNIFI8OlQ==
1523115231

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==
1523615236

1523715237
react-native-image-crop-picker@^0.40.3:
1523815238
version "0.40.3"

0 commit comments

Comments
 (0)