Skip to content

Commit

Permalink
💫 Update: Header Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Dec 12, 2024
1 parent 9049c33 commit 2440da1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ios/RNIModalSheetView/RNIModalSheetView.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
// 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

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

#import "RNIModalSheetView.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

#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 <React/RCTConversions.h>
#import <React/RCTFabricComponentsPlugins.h>
Expand Down
4 changes: 4 additions & 0 deletions ios/RNIModalSheetView/RNIModalSheetViewManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
#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
Expand Down
5 changes: 4 additions & 1 deletion ios/Swift.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
// Otherwise, it's available only locally with double-quoted imports.
#if __has_include(<react_native_ios_modal/react_native_ios_modal-Swift.h>)
#import <react_native_ios_modal/react_native_ios_modal-Swift.h>

#elif __has_include(<react-native-ios-modal/react_native_ios_modal-Swift.h>)
#import <react-native-ios-modal/react_native_ios_modal-Swift.h>

#else
#import "react_native_ios_modal-Swift.h"
#endif


// #import <react-native-ios-utilities/react-native-ios-utilities-Swift.h>
// #import "<react_native_ios_utilities/react_native_ios_utilities-Swift.h>"
// #import <react-native-ios-utilities/react_native_ios_utilities-Swift.h>
Expand Down

0 comments on commit 2440da1

Please sign in to comment.