diff --git a/native/profile/tunnelbroker-menu.react.js b/native/profile/tunnelbroker-menu.react.js
--- a/native/profile/tunnelbroker-menu.react.js
+++ b/native/profile/tunnelbroker-menu.react.js
@@ -41,6 +41,16 @@
}
}, [message, recipient, sendMessage]);
+ const messagesList = React.useMemo(
+ () =>
+ messages.map((msg, id) => (
+
+ {JSON.stringify(msg)}
+
+ )),
+ [messages, styles],
+ );
+
return (
MESSAGES
- {messages.map(msg => (
-
- {JSON.stringify(msg)}
-
- ))}
+ {messagesList}
);
}