Skip to content

Commit 5149d6a

Browse files
committed
fix: WebView 메시지 전송 코드 주석 처리
1 parent 709275b commit 5149d6a

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/hooks/useSocialAuth.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ export const useSocialAuth = () => {
9494

9595
if (res.state === 'NEED_REGISTER') {
9696
// WebView에서는 네이티브에 메시지 전송
97-
if (isWebView && (window as any).ReactNativeWebView) {
98-
(window as any).ReactNativeWebView.postMessage(
99-
JSON.stringify({
100-
type: MESSAGE_TYPES.NEED_REGISTER,
101-
email: res.email,
102-
provider,
103-
}),
104-
);
105-
return;
106-
}
97+
// if (isWebView && (window as any).ReactNativeWebView) {
98+
// (window as any).ReactNativeWebView.postMessage(
99+
// JSON.stringify({
100+
// type: MESSAGE_TYPES.NEED_REGISTER,
101+
// email: res.email,
102+
// provider,
103+
// }),
104+
// );
105+
// return;
106+
// }
107107

108108
// 브라우저에서는 회원가입 페이지로 이동
109109
navigate(webPath.register, {

0 commit comments

Comments
 (0)