Skip to content

Move FocusZone away from bridge#4067

Open
JunielKatarn wants to merge 8 commits intomicrosoft:mainfrom
jurocha-ms:focuszone-tm
Open

Move FocusZone away from bridge#4067
JunielKatarn wants to merge 8 commits intomicrosoft:mainfrom
jurocha-ms:focuszone-tm

Conversation

@JunielKatarn
Copy link
Copy Markdown
Contributor

Platforms Impacted

  • iOS
  • macOS
  • win32 (Office)
  • windows
  • android

Description of changes

Migrate the FocusZoneViewManager module to TurboModule semantics.

Verification

Ran existing tests.

Pull request checklist

This PR has considered (when applicable):

  • [*] Automated Tests
  • Documentation and examples
  • Keyboard Accessibility
  • Voiceover
  • Internationalization and Right-to-left Layouts

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 12, 2026

🦋 Changeset detected

Latest commit: 613c9ab

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@fluentui-react-native/focus-zone Major
@fluentui-react-native/tester Major
@fluentui-react-native/contextual-menu Patch
@fluentui-react-native/menu Patch
@fluentui-react-native/radio-group Patch
@fluentui-react-native/tablist Patch
@fluentui-react-native/dependency-profiles Major
@fluentui/react-native Patch
@fluentui-react-native/menu-button Patch
@fluentui-react-native/experimental-menu-button Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JunielKatarn JunielKatarn requested a review from Saadnajmi March 12, 2026 21:42
@Saadnajmi
Copy link
Copy Markdown
Collaborator

Talked offline, but this does a lot more than make it a Turbomodule, it moves FocusZone to the V1 framework which is orthogonal

@JunielKatarn JunielKatarn changed the title Make FocusZone a TurboModule Move FocusZone away from bridge Mar 26, 2026
Comment on lines +140 to +141
// defaultTabbableElement is not handled here: resolving a view by React tag
// requires the legacy UIManager and is not supported in the Fabric renderer.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@acoates-ms any idea how one might be able to do this, suppose of you had to do it for windows?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In windows we still have a look up by tag in fabric. -- That may not have been the correct move if that isn't available in the other platforms.

Also didn't we move to saying this property should be set using nativeId? - Maybe we'll have to force all SDXs to only use that method when using fabric?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Talked offline a bit more, I think we should update this to handle setting by nativeID. And we'll need to make it backwards compatible too since internally, the JS and native code may not be in sync.

@@ -0,0 +1,6 @@
---
"@fluentui-react-native/focus-zone": major
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@Saadnajmi please confirm

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We disallow major bumps in the repo as of now, and this should be additive not breaking. So I don' think this should be major.

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.

3 participants