mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
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);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user