Skip to content

Commit

Permalink
fix: swift와 연결
Browse files Browse the repository at this point in the history
fix: swift와 연결
  • Loading branch information
urimeee authored Dec 29, 2024
2 parents d5054ce + bfb2194 commit 453cbab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/SchedulePage/SchedulePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const SchedulePage = () => {
// receiveUserInfo 함수 정의
window.receiveUserInfo = function (info) {
console.log('Received info:', info);
setUserInfo(info);
alert(`네이티브 통신 성공! 받은 데이터: ${JSON.stringify(info)}`);
return info;
};
}, []);

Expand All @@ -30,6 +32,7 @@ const SchedulePage = () => {
return (
<S.Container>
<button onClick={buttonOnClick}>버튼</button>

<TextField />
<ScheduleCard />
</S.Container>
Expand Down

0 comments on commit 453cbab

Please sign in to comment.