From b7e8f667953c2bc65c25b00968051c063a684d01 Mon Sep 17 00:00:00 2001 From: Fanghao Date: Thu, 21 May 2020 21:10:32 -0700 Subject: [PATCH] Fix imports in `RCTUtilsUIOverride.h` (#28946) Summary: While we build react native 0.62.2 via our Bazel build system, encountered those following errors due to lack of appropriate imports: ``` external/React-Core/React/Base/RCTUtilsUIOverride.h:8:33: error: cannot find interface declaration for 'NSObject', superclass of 'RCTUtilsUIOverride' interface RCTUtilsUIOverride : NSObject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ external/React-Core/React/Base/RCTUtilsUIOverride.h:12:37: error: expected a type + (void)setPresentedViewController:(UIViewController *)presentedViewController; ^ ``` Add the appropriate imports `` and `` fix those errors. Honestly I dont know how it's supposed to work without those imports. Also all the siblings files have the correct imports. e.g. [RCTUtils.h](https://github.com/discord/react-native/blob/15a5f3624c40624d8dd0307bbcc1f2b2aba15a1b/React/Base/RCTUtils.h) ## Changelog [iOS] [Fixed] - Fix imports in `RCTUtilsUIOverride.h` Pull Request resolved: https://github.com/facebook/react-native/pull/28946 Test Plan: RN tester iOS app runs fine. Differential Revision: D21700030 Pulled By: shergin fbshipit-source-id: 9ef806b8f656bdad289fbdd3d84ecefb0dea6afb --- React/Base/RCTUtilsUIOverride.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/React/Base/RCTUtilsUIOverride.h b/React/Base/RCTUtilsUIOverride.h index d89dcbc148..c6988c6ab4 100644 --- a/React/Base/RCTUtilsUIOverride.h +++ b/React/Base/RCTUtilsUIOverride.h @@ -5,6 +5,9 @@ * LICENSE file in the root directory of this source tree. */ +#import +#import + @interface RCTUtilsUIOverride : NSObject /** Set the global presented view controller instance override.