Skip to content

add @MainActor FabricViewImplementationProtocol - #1142

Merged
Naturalclar merged 1 commit into
react-native-menu:masterfrom
philipheinser:patch-1
Nov 24, 2026
Merged

Naturalclar merged 1 commit into
react-native-menu:masterfrom
philipheinser:patch-1

Conversation

@philipheinser

Copy link
Copy Markdown
Contributor

Overview

make protocol conform to @mainactor

@Naturalclar Naturalclar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Both adopters (FabricMenuViewImplementation / FabricActionSheetView) are UIKit subclasses and already main-actor isolated, and the only caller is MenuView.mm, so this is safe. It has no effect in the current Swift 5 language mode. In a local Swift 6 type-check it removes the protocol-conformance errors. RCTMenuItem still needs main-actor isolation before the library builds fully in Swift 6 mode, so I'm merging this as a refactor step toward that.

@Naturalclar
Naturalclar merged commit 9959924 into react-native-menu:master Nov 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants