Skip to content

Commit

Permalink
💫 Update: Imports to use RNI_UTILITIES_HEADER
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Dec 16, 2024
1 parent f9285ed commit fbe6acc
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 33 deletions.
7 changes: 2 additions & 5 deletions ios/RNIModalSheetView/RNIModalSheetView.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
// Created by Dominic Go on 6/6/24.
//

#if __has_include(<react_native_ios_utilities/RNIBaseView.h>)
#import <react_native_ios_utilities/RNIBaseView.h>
#else
#import <react-native-ios-utilities/RNIBaseView.h>
#endif
#import "RNIHeaderUtils.h"
#import RNI_UTILITIES_HEADER(RNIBaseView.h)

#if RCT_NEW_ARCH_ENABLED
#import <React/RCTViewComponentView.h>
Expand Down
25 changes: 7 additions & 18 deletions ios/RNIModalSheetView/RNIModalSheetView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,19 @@
//

#import "RNIModalSheetView.h"
#import "RNIHeaderUtils.h"
#import "../Swift.h"

#if __has_include(<react_native_ios_utilities/RNIBaseView.h>)
#import <react_native_ios_utilities/RNIBaseView.h>
#import <react_native_ios_utilities/RNIContentViewParentDelegate.h>
#import <react_native_ios_utilities/UIApplication+RNIHelpers.h>
#import <react_native_ios_utilities/RNIObjcUtils.h>
#else
#import <react-native-ios-utilities/RNIBaseView.h>
#import <react-native-ios-utilities/RNIContentViewParentDelegate.h>
#import <react-native-ios-utilities/UIApplication+RNIHelpers.h>
#import <react-native-ios-utilities/RNIObjcUtils.h>
#endif
#import RNI_UTILITIES_HEADER(RNIBaseView.h)
#import RNI_UTILITIES_HEADER(RNIContentViewParentDelegate.h)
#import RNI_UTILITIES_HEADER(UIApplication+RNIHelpers.h)
#import RNI_UTILITIES_HEADER(RNIObjcUtils.h)

#if RCT_NEW_ARCH_ENABLED
#include "RNIModalSheetViewComponentDescriptor.h"

#if __has_include(<react_native_ios_utilities/RNIBaseViewState.h>)
#include <react_native_ios_utilities/RNIBaseViewState.h>
#include <react_native_ios_utilities/RNIBaseViewProps.h>
#else
#include <react-native-ios-utilities/RNIBaseViewState.h>
#include <react-native-ios-utilities/RNIBaseViewProps.h>
#endif
#import RNI_UTILITIES_HEADER(RNIBaseViewState.h)
#import RNI_UTILITIES_HEADER(RNIBaseViewProps.h)

#import <React/RCTConversions.h>
#import <React/RCTFabricComponentsPlugins.h>
Expand Down
4 changes: 3 additions & 1 deletion ios/RNIModalSheetView/RNIModalSheetViewComponentDescriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
#include "RNIModalSheetViewShadowNode.h"
#include "RNIBaseViewComponentDescriptor.h"

#include <react_native_ios_utilities/RNIBaseViewState.h>
#include "RNIHeaderUtils.h"
#import RNI_UTILITIES_HEADER(RNIBaseViewState.h)

#include <react/renderer/core/ConcreteComponentDescriptor.h>


Expand Down
9 changes: 3 additions & 6 deletions ios/RNIModalSheetView/RNIModalSheetViewManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@
//

#import "RNIModalSheetView.h"
#import "RNIHeaderUtils.h"
#import <objc/runtime.h>

#import RNI_UTILITIES_HEADER(RNIBaseViewUtils.h)

#import "RCTBridge.h"
#import <React/RCTViewManager.h>
#import <React/RCTUIManager.h>

#if __has_include(<react_native_ios_utilities/RNIBaseViewUtils.h>)
#import <react_native_ios_utilities/RNIBaseViewUtils.h>
#else
#import <react-native-ios-utilities/RNIBaseViewUtils.h>
#endif


@interface RNIModalSheetViewManager : RCTViewManager
@end
Expand Down
7 changes: 4 additions & 3 deletions ios/RNIModalSheetView/RNIModalSheetViewShadowNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
#if __cplusplus
#pragma once

#include <react_native_ios_utilities/RNIBaseViewShadowNode.h>
#include <react_native_ios_utilities/RNIBaseViewProps.h>
#include <react_native_ios_utilities/RNIBaseViewEventEmitter.h>
#include "RNIHeaderUtils.h"
#import RNI_UTILITIES_HEADER(RNIBaseViewShadowNode.h)
#import RNI_UTILITIES_HEADER(RNIBaseViewProps.h)
#import RNI_UTILITIES_HEADER(RNIBaseViewEventEmitter.h)

#include <react/renderer/components/RNIModalSpec/EventEmitters.h>
#include <react/renderer/components/RNIModalSpec/Props.h>
Expand Down

0 comments on commit fbe6acc

Please sign in to comment.