Skip to content

[Fabric] Replace UIKit with RCTUIKit shim #1519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

@interface RCTInputAccessoryContentView : UIView

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

@protocol RCTFabricModalHostViewControllerDelegate <NSObject>
- (void)boundsDidChange:(CGRect)newBounds;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTGenericDelegateSplitter.h>
#import <React/RCTViewComponentView.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTDefines.h>
#import <React/RCTGenericDelegateSplitter.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <react/renderer/attributedstring/AttributedString.h>
#import <react/renderer/attributedstring/ParagraphAttributes.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <optional>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)
#import "React/RCTUITextView.h"

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTViewComponentView.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTComponentViewProtocol.h>
#import <React/RCTConstants.h>
Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/Mounting/RCTComponentViewClassDescriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTComponentViewProtocol.h>

Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/Mounting/RCTComponentViewDescriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTComponentViewProtocol.h>

Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/Mounting/RCTComponentViewFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTComponentViewDescriptor.h>
#import <React/RCTComponentViewProtocol.h>
Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/Mounting/RCTComponentViewProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <react/renderer/componentregistry/ComponentDescriptorProvider.h>
#import <react/renderer/core/EventEmitter.h>
Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/Mounting/RCTComponentViewRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTComponentViewDescriptor.h>
#import <React/RCTComponentViewFactory.h>
Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/Mounting/RCTMountingManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTMountingManagerDelegate.h>
#import <React/RCTPrimitives.h>
Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/Mounting/RCTMountingManagerDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTPrimitives.h>

Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/Mounting/RCTMountingTransactionObserving.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#include <react/renderer/mounting/MountingTransaction.h>

Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/Mounting/UIView+ComponentViewProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTComponentViewProtocol.h>

Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/RCTConversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <react/renderer/components/view/AccessibilityPrimitives.h>
#import <react/renderer/components/view/primitives.h>
Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/RCTImageResponseDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/RCTLocalizationProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#import <React/RCTDefines.h>
#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

@protocol RCTLocalizationProtocol <NSObject>

Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/RCTScheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)
#import <memory>

#import <react/renderer/componentregistry/ComponentDescriptorFactory.h>
Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/RCTSurfacePresenter.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTPrimitives.h>
#import <React/RCTSurfacePresenterStub.h>
Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/RCTSurfacePresenterBridgeAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#import <Foundation/Foundation.h>
#import <ReactCommon/RuntimeExecutor.h>
#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)
#import <react/utils/ContextContainer.h>

NS_ASSUME_NONNULL_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/RCTSurfaceRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTPrimitives.h>

Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/RCTSurfaceTouchHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/RCTTouchableComponentViewProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)
#import <react/renderer/components/view/TouchEventEmitter.h>

@protocol RCTTouchableComponentViewProtocol <NSObject>
Expand Down
2 changes: 1 addition & 1 deletion React/Fabric/Utils/RCTGenericDelegateSplitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion React/Views/RCTMaskedView.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTView.h>

Expand Down
2 changes: 1 addition & 1 deletion React/Views/RCTModalHostView.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTInvalidating.h>
#import <React/RCTModalHostViewManager.h>
Expand Down
2 changes: 1 addition & 1 deletion React/Views/RCTModalHostViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

@interface RCTModalHostViewController : UIViewController

Expand Down
2 changes: 1 addition & 1 deletion React/Views/RCTModalManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
Expand Down
2 changes: 1 addition & 1 deletion React/Views/RCTWrapperViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <UIKit/UIKit.h>
#import <React/RCTUIKit.h> // TODO(macOS GH#774)

@class RCTWrapperViewController;

Expand Down
Loading