From e77c2d714f7f5510f099fd4fbae6678d42bd5d19 Mon Sep 17 00:00:00 2001 From: tian543 <14320466+tian000@users.noreply.github.com> Date: Thu, 18 Sep 2025 10:28:59 -0700 Subject: [PATCH 1/2] Fix new arch message serialization by adding 'isMainFrame' property to the data structure in iOS implementation. --- apple/RNCWebView.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apple/RNCWebView.mm b/apple/RNCWebView.mm index 95c0fcc91..32b96540f 100644 --- a/apple/RNCWebView.mm +++ b/apple/RNCWebView.mm @@ -134,7 +134,8 @@ - (instancetype)initWithFrame:(CGRect)frame .canGoBack = static_cast([[dictionary valueForKey:@"canGoBack"] boolValue]), .canGoForward = static_cast([[dictionary valueForKey:@"canGoForward"] boolValue]), .loading = static_cast([[dictionary valueForKey:@"loading"] boolValue]), - .data = std::string([[dictionary valueForKey:@"data"] UTF8String]) + .data = std::string([[dictionary valueForKey:@"data"] UTF8String]), + .isMainFrame = static_cast([[dictionary valueForKey:@"isMainFrame"] boolValue]) }; webViewEventEmitter->onMessage(data); } From 0d42bf420ce0dc3370afe1b2f4e67bb587208173 Mon Sep 17 00:00:00 2001 From: tian543 <14320466+tian000@users.noreply.github.com> Date: Thu, 18 Sep 2025 10:49:31 -0700 Subject: [PATCH 2/2] changeset message --- .changeset/few-ghosts-enjoy.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/few-ghosts-enjoy.md diff --git a/.changeset/few-ghosts-enjoy.md b/.changeset/few-ghosts-enjoy.md new file mode 100644 index 000000000..93e38d013 --- /dev/null +++ b/.changeset/few-ghosts-enjoy.md @@ -0,0 +1,5 @@ +--- +'@phantom/react-native-webview': patch +--- + +Add isMainFrame to new arch serialization layer