From 6e48882bb00b0b5b857c54ffa6ca75edf43b5296 Mon Sep 17 00:00:00 2001 From: TQCasey <494294315@qq.com> Date: Thu, 5 Mar 2026 22:54:17 +0800 Subject: [PATCH] demo fix --- App.tsx | 13 ++++++------- libs/rnwalletman | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/App.tsx b/App.tsx index 0b2ca65..bf80f52 100644 --- a/App.tsx +++ b/App.tsx @@ -67,6 +67,12 @@ export default class App extends Component { async componentDidMount() { await this.setupPermissions(); + this.echoSub = onProxyMessage((msg) => { + if (msg.type === 'echo') { + Alert.alert('Echo 回来了', JSON.stringify(msg.data)); + } + }); + // Login with auto-retry every 3s until success (setTimeout, non-blocking) const doLogin = () => { Api.instance.login('test123', '123456') @@ -93,13 +99,6 @@ export default class App extends Component { sendEcho = () => { const text = `hello_${Date.now()}`; - this.echoSub?.remove(); - this.echoSub = onProxyMessage((msg) => { - if (msg.type === 'echo') { - Alert.alert('Echo 回来了', JSON.stringify(msg.data)); - this.echoSub?.remove(); - } - }); proxySendMessage({ type: 'echo', messageId: `echo_${Date.now()}`, data: { text } }); }; diff --git a/libs/rnwalletman b/libs/rnwalletman index 44b5308..a952e65 160000 --- a/libs/rnwalletman +++ b/libs/rnwalletman @@ -1 +1 @@ -Subproject commit 44b5308b9dd704544b38ce849d50525ad7208dfa +Subproject commit a952e657ffa444d68a448ff2aad7dfc34f58cbec