From 2ad771975f7630b7346aefb0addf7da50957f03c Mon Sep 17 00:00:00 2001 From: ww8007 Date: Sun, 6 Aug 2023 19:06:51 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=92=A4=EB=A1=9C=EA=B0=80=EA=B8=B0?= =?UTF-8?q?=EC=97=90=20=EB=8C=80=ED=95=9C=20route=20back=20message=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/service/hooks/useBridgeCallback.ts | 2 ++ src/common/service/hooks/useWebview.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/service/hooks/useBridgeCallback.ts b/src/common/service/hooks/useBridgeCallback.ts index f5288db2..466e1bab 100644 --- a/src/common/service/hooks/useBridgeCallback.ts +++ b/src/common/service/hooks/useBridgeCallback.ts @@ -19,6 +19,8 @@ interface BridgeParams { }; /** snap 초기화 */ initialize: null; + /** 페이지 뒤로 가기 */ + goBack: null; } function useBridgeCallback( diff --git a/src/common/service/hooks/useWebview.ts b/src/common/service/hooks/useWebview.ts index 0c5207b8..f5da6052 100644 --- a/src/common/service/hooks/useWebview.ts +++ b/src/common/service/hooks/useWebview.ts @@ -9,7 +9,7 @@ declare global { } } -type POST_MESSAGE_TYPE = 'login' | 'notification'; +type POST_MESSAGE_TYPE = 'login' | 'notification' | 'goBack'; const useWebview = () => { return React.useMemo(() => {