Skip to content

Commit

Permalink
fix(deps): update dependency react-native-haptic-feedback to v2 (valo…
Browse files Browse the repository at this point in the history
…ra-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://github.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://github.com/mkuczera/react-native-haptic-feedback/releases/tag/v2.2.0):
Fixing failure releases

[Compare
Source](https://github.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://github.com/rajaasim)
- [@&#8203;yunchanpark](https://github.com/yunchanpark)
\[[#&#8203;111](https://github.com/mkuczera/react-native-haptic-feedback/issues/111)
]\(fix: RNReactNativeHapticFeedbackPackage.java missing import)
- [@&#8203;abuciuman](https://github.com/abuciuman)
\[[#&#8203;109](https://github.com/mkuczera/react-native-haptic-feedback/issues/109)
]\(Refactor: Align Package Name with Directory Structure for
vibrateFactory)
- [@&#8203;NotArtyom](https://github.com/NotArtyom)
\[[#&#8203;102](https://github.com/mkuczera/react-native-haptic-feedback/issues/102)]\(FIX:
iOS build issues with new architecture)
- [@&#8203;Lavegaa](https://github.com/Lavegaa)
\[[#&#8203;108](https://github.com/mkuczera/react-native-haptic-feedback/issues/108)]\(Fix
Android Vibration enable condition)
- [@&#8203;alexhernandez](https://github.com/alexhernandez)
\[[#&#8203;105](https://github.com/mkuczera/react-native-haptic-feedback/issues/105)
]\(Android RN 72 Support - Update build.gradle w/ Namespace)
- [@&#8203;thenishantgiri](https://github.com/thenishantgiri)
\[[#&#8203;110](https://github.com/mkuczera/react-native-haptic-feedback/issues/110)]\(🚀
Revamped Documentation: Clearer Instructions, Enhanced Formatting, and
Improved Readability )

###
[`v2.1.0`](https://github.com/mkuczera/react-native-haptic-feedback/compare/d9bfa28b6d043967a88148383d57b165c1095e46...52bc4342fd30422c018066783c92379d7b37f5c7)

[Compare
Source](https://github.com/mkuczera/react-native-haptic-feedback/compare/d9bfa28b6d043967a88148383d57b165c1095e46...52bc4342fd30422c018066783c92379d7b37f5c7)

###
[`v2.0.3`](https://github.com/mkuczera/react-native-haptic-feedback/compare/d0f20959ef982fb30bf0ddcd7c156994c657f034...d9bfa28b6d043967a88148383d57b165c1095e46)

[Compare
Source](https://github.com/mkuczera/react-native-haptic-feedback/compare/d0f20959ef982fb30bf0ddcd7c156994c657f034...d9bfa28b6d043967a88148383d57b165c1095e46)

###
[`v2.0.2`](https://github.com/mkuczera/react-native-haptic-feedback/compare/31c45a21128639f18ef6197b30544cb43370bef3...d0f20959ef982fb30bf0ddcd7c156994c657f034)

[Compare
Source](https://github.com/mkuczera/react-native-haptic-feedback/compare/31c45a21128639f18ef6197b30544cb43370bef3...d0f20959ef982fb30bf0ddcd7c156994c657f034)

###
[`v2.0.1`](https://github.com/mkuczera/react-native-haptic-feedback/compare/v2.0.0...31c45a21128639f18ef6197b30544cb43370bef3)

[Compare
Source](https://github.com/mkuczera/react-native-haptic-feedback/compare/v2.0.0...31c45a21128639f18ef6197b30544cb43370bef3)

###
[`v2.0.0`](https://github.com/mkuczera/react-native-haptic-feedback/releases/tag/v2.0.0):
New Arch support

[Compare
Source](https://github.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://github.com/j-piasecki) in
[https://github.com/mkuczera/react-native-haptic-feedback/pull/90](https://github.com/mkuczera/react-native-haptic-feedback/pull/90)
- Update to Fabric by
[@&#8203;hansdesmedt](https://github.com/hansdesmedt) in
[https://github.com/mkuczera/react-native-haptic-feedback/pull/89](https://github.com/mkuczera/react-native-haptic-feedback/pull/89)

##### Further changes

- android installation part updated on Readme file by
[@&#8203;elmirsmylv](https://github.com/elmirsmylv) in
[https://github.com/mkuczera/react-native-haptic-feedback/pull/83](https://github.com/mkuczera/react-native-haptic-feedback/pull/83)
- Updates the TypeScript definition by
[@&#8203;matiaskorhonen](https://github.com/matiaskorhonen) in
[https://github.com/mkuczera/react-native-haptic-feedback/pull/86](https://github.com/mkuczera/react-native-haptic-feedback/pull/86)
-
[#&#8203;47](https://github.com/mkuczera/react-native-haptic-feedback/issues/47)
Add default haptic feedback for iPhone 6s or IPhone6S Plus. by
[@&#8203;Romick2005](https://github.com/Romick2005) in
[https://github.com/mkuczera/react-native-haptic-feedback/pull/80](https://github.com/mkuczera/react-native-haptic-feedback/pull/80)

#### New Contributors

- [@&#8203;elmirsmylv](https://github.com/elmirsmylv) made their first
contribution in
[https://github.com/mkuczera/react-native-haptic-feedback/pull/83](https://github.com/mkuczera/react-native-haptic-feedback/pull/83)
- [@&#8203;matiaskorhonen](https://github.com/matiaskorhonen) made
their first contribution in
[https://github.com/mkuczera/react-native-haptic-feedback/pull/86](https://github.com/mkuczera/react-native-haptic-feedback/pull/86)
- [@&#8203;Romick2005](https://github.com/Romick2005) made their first
contribution in
[https://github.com/mkuczera/react-native-haptic-feedback/pull/80](https://github.com/mkuczera/react-native-haptic-feedback/pull/80)
- [@&#8203;j-piasecki](https://github.com/j-piasecki) made their first
contribution in
[https://github.com/mkuczera/react-native-haptic-feedback/pull/90](https://github.com/mkuczera/react-native-haptic-feedback/pull/90)
- [@&#8203;hansdesmedt](https://github.com/hansdesmedt) made their
first contribution in
[https://github.com/mkuczera/react-native-haptic-feedback/pull/89](https://github.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 <satish.ravi@valoraapp.com>
Co-authored-by: valora-bot <valorabot@valoraapp.com>
  • Loading branch information
3 people authored and shottah committed May 15, 2024
1 parent 1beaf30 commit 4ddb49d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ PODS:
- RNPersonaInquiry2 (2.2.23):
- PersonaInquirySDK2 (= 2.3.9)
- React-Core
- RNReactNativeHapticFeedback (1.14.0):
- RNReactNativeHapticFeedback (2.2.0):
- React-Core
- RNReanimated (2.17.0):
- DoubleConversion
Expand Down Expand Up @@ -1252,7 +1252,7 @@ SPEC CHECKSUMS:
RNLocalize: d4b8af4e442d4bcca54e68fc687a2129b4d71a81
RNPermissions: da2a4ded375aa8292d85ed93676e102c203d4717
RNPersonaInquiry2: 3ab52078e891a5d2fa39bf7cc9119ca27f0337fd
RNReactNativeHapticFeedback: 1e3efeca9628ff9876ee7cdd9edec1b336913f8c
RNReactNativeHapticFeedback: ec56a5f81c3941206fd85625fa669ffc7b4545f9
RNReanimated: f186e85d9f28c9383d05ca39e11dd194f59093ec
RNScreens: 93ae3be2f119d955620f9bbb39ad372adb53b7a9
RNSecureRandom: ff25041dd065a945810ca01a2bcd06f8d141b81d
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.16.0",
"react-native-get-random-values": "^1.11.0",
"react-native-haptic-feedback": "^1.14.0",
"react-native-haptic-feedback": "^2.2.0",
"react-native-image-crop-picker": "^0.40.3",
"react-native-in-app-review": "^4.3.3",
"react-native-keychain": "^8.1.3",
Expand Down
10 changes: 5 additions & 5 deletions src/styles/hapticFeedback.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ReactNativeHapticFeedback from 'react-native-haptic-feedback'
import ReactNativeHapticFeedback, { HapticFeedbackTypes } from 'react-native-haptic-feedback'
import { hapticFeedbackEnabledSelector } from 'src/app/selectors'
import { store } from 'src/redux/store'

Expand All @@ -7,21 +7,21 @@ const options = {
ignoreAndroidSystemSettings: false,
}

const triggerHapticFeedback = (type: ReactNativeHapticFeedback.HapticFeedbackTypes) => {
const triggerHapticFeedback = (type: HapticFeedbackTypes) => {
const hapticFeedbackEnabled = hapticFeedbackEnabledSelector(store.getState())
if (hapticFeedbackEnabled) {
ReactNativeHapticFeedback.trigger(type, options)
}
}

export const vibrateInformative = () => {
triggerHapticFeedback('impactMedium')
triggerHapticFeedback(HapticFeedbackTypes.impactMedium)
}

export const vibrateSuccess = () => {
triggerHapticFeedback('notificationSuccess')
triggerHapticFeedback(HapticFeedbackTypes.notificationSuccess)
}

export const vibrateError = () => {
triggerHapticFeedback('notificationError')
triggerHapticFeedback(HapticFeedbackTypes.notificationError)
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15229,10 +15229,10 @@ react-native-gradle-plugin@^0.71.19:
resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.71.19.tgz#3379e28341fcd189bc1f4691cefc84c1a4d7d232"
integrity sha512-1dVk9NwhoyKHCSxcrM6vY6cxmojeATsBobDicX0ZKr7DgUF2cBQRTKsimQFvzH8XhOVXyH8p4HyDSZNIFI8OlQ==

react-native-haptic-feedback@^1.14.0:
version "1.14.0"
resolved "https://registry.yarnpkg.com/react-native-haptic-feedback/-/react-native-haptic-feedback-1.14.0.tgz#b50f49dedda4980b3c37c5780823f753cf3ee717"
integrity sha512-dSXZ6gAzl+W/L7BPjOpnT0bx0cgQiSr0sB3DjyDJbGIdVr4ISaktZC6gC9xYFTv2kMq0+KtbKi+dpd0WtxYZMw==
react-native-haptic-feedback@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/react-native-haptic-feedback/-/react-native-haptic-feedback-2.2.0.tgz#bc46edd1f053265bfbe6c32487cbce074e099429"
integrity sha512-3tqJOjCguWhIrX0nkURn4yw6kXdsSDjjrvZCRjKXYGlL28hdQmoW2okAHduDTD9FWj9lA+lHgwFWgGs4aFNN7A==

react-native-image-crop-picker@^0.40.3:
version "0.40.3"
Expand Down

0 comments on commit 4ddb49d

Please sign in to comment.