Skip to content

Add HapticType #1277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 3, 2021
Merged

Add HapticType #1277

merged 2 commits into from
May 3, 2021

Conversation

lidord-wix
Copy link
Contributor

Description

Export enum HapticType instead of hapticMethods

Changelog

Export enum HapticType instead of hapticMethods

@lidord-wix lidord-wix requested a review from ethanshar April 27, 2021 10:12
@ethanshar ethanshar requested review from mendyEdri and removed request for ethanshar April 27, 2021 13:57
@ethanshar ethanshar assigned mendyEdri and unassigned ethanshar Apr 27, 2021
@@ -24,6 +24,6 @@ function triggerHaptic(hapticMethod: string, componentName: string) {
}

export default {
HapticMethods,
HapticType,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No migration needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, it's a new code so it's not in use yet :)


function triggerHaptic(hapticMethod: string, componentName: string) {
function triggerHaptic(hapticMethod: HapticType, componentName: string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's intentionally kept its name method where all other places has changed to type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was intentional, but on second thought it is better to be aligned with our 'old' code in the private repo.

Copy link
Contributor

@mendyEdri mendyEdri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changes :)

@lidord-wix lidord-wix requested a review from mendyEdri May 2, 2021 15:44
@mendyEdri mendyEdri merged commit e2163ae into master May 3, 2021
@lidord-wix lidord-wix deleted the fix/hapticType branch May 31, 2021 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants