Skip to content

Assert if NativeModuleRegistry.onBatchComplete() is used in new architecture#50164

Closed
mdvacca wants to merge 11 commits into
facebook:mainfrom
mdvacca:export-D71050638
Closed

Assert if NativeModuleRegistry.onBatchComplete() is used in new architecture#50164
mdvacca wants to merge 11 commits into
facebook:mainfrom
mdvacca:export-D71050638

Conversation

@mdvacca
Copy link
Copy Markdown
Contributor

@mdvacca mdvacca commented Mar 20, 2025

Summary:
Based on analysis this method is only used by legacy architecture, this diff adds an assert if NativeModuleRegistry.onBatchComplete() is used in new architecture

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D71050638

mdvacca added 11 commits March 20, 2025 00:13
Summary:
Remove UIManagerModule from comments

changelog: [internal] internal

Differential Revision: D70738950
Summary:
Compile out UIManagerModule from ReactTextView

changelog: [internal] internal

Differential Revision: D70738949
Summary:
UIManagerType.DEFAULT is becoming confusings As we are expanding the usage of the New architecture everywhere.

That's why I'm depreacting this constant and introducing UIManagerType.LEGACY.

changelog: [Android][Deprecated] Deprecate UIManagerType.DEFAULT

Differential Revision: D70738948
Summary:
Compile-out UIManagerModule from ReactHostImpl

changelog: [internal] internal

Differential Revision: D70742208
Summary:
Compile-out UIManagerModule from ReactModalHostView

changelog: [internal] internal

Differential Revision: D70742206
Summary:
Ensure UIManagerHelper does not access UIManagerModule

changelog: [ineternal] internal

Differential Revision: D70742205
Summary:
In this diff I'm removing UIManager dependency out of ReactInstance class

changelog: [internal] internal

Differential Revision: D71003821
…intainVisibleScrollPositionHelper.getUIManager()

Summary:
This diff renames MaintainVisibleScrollPositionHelper.getUIManagerModule() -> MaintainVisibleScrollPositionHelper.getUIManager() to move away from the UIManagerModule naming

changelog: [internal\ internal

Differential Revision: D71050639
Summary:
In this diff we are removing UIManagerModule from NativeAnimatedModule
This code wasn't executing when fabric is enabled, with this change the code that references UIManagerModule will be stripped out

changelog: [internal] internal

Differential Revision: D71050641
Summary:
Compile-out UIManagerModule from ReactSafeAreaView

changelog: [internal] internal

Differential Revision: D71050640
…tecture

Summary:
Based on analysis this method is only used by legacy architecture, this diff adds an assert if NativeModuleRegistry.onBatchComplete() is used in new architecture

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D71050638
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Mar 20, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D71050638

mdvacca added a commit to mdvacca/react-native that referenced this pull request Mar 20, 2025
…tecture (facebook#50164)

Summary:

Based on analysis this method is only used by legacy architecture, this diff adds an assert if NativeModuleRegistry.onBatchComplete() is used in new architecture


changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D71050638
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 20, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 8d1278e.

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. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants