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 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); }