Skip to content
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

Merged
merged 2 commits into from
Feb 10, 2024
Merged

🎨 햅틱/진동 추가 #527

merged 2 commits into from
Feb 10, 2024

Conversation

woobottle
Copy link
Collaborator

🤔 해결하려는 문제가 무엇인가요?

closed #526

🎉 변경 사항

탭 변경 시 햅틱 추가, 미션 인증 페이지 진입 시 진동 발생시키기

진동 => 휴대폰을 진동해버림
햅틱 => 뾱하면서 진동 약한 버전

🙏 여기는 꼭 봐주세요!

사용 방법

🌄 스크린샷

📚 참고

Copy link

vercel bot commented Feb 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
10mm-client-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2024 3:27pm

Copy link
Contributor

Copy link
Member

@sumi-0011 sumi-0011 left a comment

Choose a reason for hiding this comment

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

👍🏻

Comment on lines 17 to 24
useEffect(() => {
window.ReactNativeWebView?.postMessage(
JSON.stringify({
type: NATIVE_CUSTOM_EVENTS.VIBRATE,
}),
);
}, []);

Copy link
Member

Choose a reason for hiding this comment

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

따로 훅으로 빼주면 좋을 것 같아요~

Comment on lines 17 to 21
window.ReactNativeWebView?.postMessage(
JSON.stringify({
type: NATIVE_CUSTOM_EVENTS.HAPTIC,
}),
);
Copy link
Member

Choose a reason for hiding this comment

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

22

Copy link
Member

@sumi-0011 sumi-0011 left a comment

Choose a reason for hiding this comment

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

👍🏻

@woobottle woobottle merged commit 1599fd0 into develop Feb 10, 2024
3 checks passed
@woobottle woobottle deleted the addHapticAndVibration branch February 10, 2024 15:27
Copy link
Contributor

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.

[Bug] 탭 변경 시 햅틱 추가, 미션 인증 페이지 진입 시 진동 발생시키기
2 participants