Allow the existing StatusBar getter’s synchronous main-queue call (#59998)

Summary:

Keep the existing `getVerticalBarEdge` implementation and allow its Clang-Tidy synchronous-main-queue diagnostic at this call site only. No runtime behavior or public API changes.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D131753903

Pull Request resolved: https://github.com/react/react-native/pull/59998
This commit is contained in:
Pieter De Baets authored and GitHub committed 2026-11-16 10:46:28 +00:00
1 parent 32e6daa952
commit 10818c8b10
1 file changed
+1
@@ -226,6 +226,7 @@ RCT_EXPORT_MODULE()
- (NSString *)getVerticalBarEdge
{
__block NSString *edge;
// NOLINTNEXTLINE(facebook-rct-unsafe-execute-on-main-queue-sync-check)
RCTUnsafeExecuteOnMainQueueSync(^{
edge = RCTVerticalBarEdge(RCTKeyWindow().traitCollection);
});