Skip to content

Stub NativeViewHierarchyManager and clean up usages#55758

Closed
mdvacca wants to merge 1 commit intofacebook:mainfrom
mdvacca:export-D93801180
Closed

Stub NativeViewHierarchyManager and clean up usages#55758
mdvacca wants to merge 1 commit intofacebook:mainfrom
mdvacca:export-D93801180

Conversation

@mdvacca
Copy link
Copy Markdown
Contributor

@mdvacca mdvacca commented Feb 25, 2026

Summary:
Stub out NativeViewHierarchyManager by removing all fields, private methods, and method body implementations while keeping all public method signatures with empty bodies for backward compatibility with third-party libraries. This follows the same pattern used for UIViewOperationQueue in D93069524.

Also clean up direct usages:

  • UIViewOperationQueue: remove NativeViewHierarchyManager constructor parameter and getNativeViewHierarchyManager() method
  • UIImplementation: stop creating NativeViewHierarchyManager instance
  • ReactAndroid.api: update API surface to reflect constructor change

UIBlock.kt is left unchanged — its execute(NativeViewHierarchyManager) signature is kept for backward compatibility with third-party libraries (expo-modules-core, react-native-maps, gesture-handler, view-shot).

Changelog: [Android][Removed] - Stub out NativeViewHierarchyManager (Legacy Architecture)

Reviewed By: NickGerleman

Differential Revision: D93801180

Summary:
Stub out NativeViewHierarchyManager by removing all fields, private methods, and method body implementations while keeping all public method signatures with empty bodies for backward compatibility with third-party libraries. This follows the same pattern used for UIViewOperationQueue in D93069524.

Also clean up direct usages:
- UIViewOperationQueue: remove NativeViewHierarchyManager constructor parameter and getNativeViewHierarchyManager() method
- UIImplementation: stop creating NativeViewHierarchyManager instance
- ReactAndroid.api: update API surface to reflect constructor change

UIBlock.kt is left unchanged — its execute(NativeViewHierarchyManager) signature is kept for backward compatibility with third-party libraries (expo-modules-core, react-native-maps, gesture-handler, view-shot).

Changelog: [Android][Removed] - Stub out NativeViewHierarchyManager (Legacy Architecture)

Reviewed By: NickGerleman

Differential Revision: D93801180
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Feb 25, 2026

@mdvacca has exported this pull request. If you are a Meta employee, you can view the originating Diff in D93801180.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 25, 2026
mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 25, 2026
Summary:

Stub out NativeViewHierarchyManager by removing all fields, private methods, and method body implementations while keeping all public method signatures with empty bodies for backward compatibility with third-party libraries. This follows the same pattern used for UIViewOperationQueue in D93069524.

Also clean up direct usages:
- UIViewOperationQueue: remove NativeViewHierarchyManager constructor parameter and getNativeViewHierarchyManager() method
- UIImplementation: stop creating NativeViewHierarchyManager instance
- ReactAndroid.api: update API surface to reflect constructor change

UIBlock.kt is left unchanged — its execute(NativeViewHierarchyManager) signature is kept for backward compatibility with third-party libraries (expo-modules-core, react-native-maps, gesture-handler, view-shot).

Changelog: [Android][Removed] - Stub out NativeViewHierarchyManager (Legacy Architecture)

Reviewed By: NickGerleman

Differential Revision: D93801180
@meta-codesync meta-codesync bot closed this in c2156a8 Feb 26, 2026
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 26, 2026
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @mdvacca in c2156a8

When will my fix make it into a release? | How to file a pick request?

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Feb 26, 2026

This pull request has been merged in c2156a8.

zoontek pushed a commit to zoontek/react-native that referenced this pull request Mar 9, 2026
Summary:
Pull Request resolved: facebook#55758

Stub out NativeViewHierarchyManager by removing all fields, private methods, and method body implementations while keeping all public method signatures with empty bodies for backward compatibility with third-party libraries. This follows the same pattern used for UIViewOperationQueue in D93069524.

Also clean up direct usages:
- UIViewOperationQueue: remove NativeViewHierarchyManager constructor parameter and getNativeViewHierarchyManager() method
- UIImplementation: stop creating NativeViewHierarchyManager instance
- ReactAndroid.api: update API surface to reflect constructor change

UIBlock.kt is left unchanged — its execute(NativeViewHierarchyManager) signature is kept for backward compatibility with third-party libraries (expo-modules-core, react-native-maps, gesture-handler, view-shot).

Changelog: [Android][Removed] - Stub out NativeViewHierarchyManager (Legacy Architecture)

Reviewed By: NickGerleman

Differential Revision: D93801180

fbshipit-source-id: 20b2e47c338b8beb4f78593045f49b1a52efa966
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants