-
Notifications
You must be signed in to change notification settings - Fork 1
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
🎨 햅틱/진동 추가 #527
🎨 햅틱/진동 추가 #527
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
👍🏻
src/app/record/success/page.tsx
Outdated
useEffect(() => { | ||
window.ReactNativeWebView?.postMessage( | ||
JSON.stringify({ | ||
type: NATIVE_CUSTOM_EVENTS.VIBRATE, | ||
}), | ||
); | ||
}, []); | ||
|
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.
따로 훅으로 빼주면 좋을 것 같아요~
window.ReactNativeWebView?.postMessage( | ||
JSON.stringify({ | ||
type: NATIVE_CUSTOM_EVENTS.HAPTIC, | ||
}), | ||
); |
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.
22
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.
👍🏻
🤔 해결하려는 문제가 무엇인가요?
closed #526
🎉 변경 사항
탭 변경 시 햅틱 추가, 미션 인증 페이지 진입 시 진동 발생시키기
진동 => 휴대폰을 진동해버림
햅틱 => 뾱하면서 진동 약한 버전
🙏 여기는 꼭 봐주세요!
사용 방법
🌄 스크린샷
📚 참고