-
Notifications
You must be signed in to change notification settings - Fork 734
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
Add HapticType #1277
Conversation
@@ -24,6 +24,6 @@ function triggerHaptic(hapticMethod: string, componentName: string) { | |||
} | |||
|
|||
export default { | |||
HapticMethods, | |||
HapticType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No migration needed?
There was a problem hiding this comment.
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 :)
src/services/HapticService.ts
Outdated
|
||
function triggerHaptic(hapticMethod: string, componentName: string) { | ||
function triggerHaptic(hapticMethod: HapticType, componentName: string) { |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes :)
Description
Export enum HapticType instead of hapticMethods
Changelog
Export enum HapticType instead of hapticMethods