|
25 | 25 | #import <React/RCTFont.h>
|
26 | 26 | #import <React/RCTImageLoader.h>
|
27 | 27 | #import <React/RCTImageSource.h>
|
| 28 | +#import "RNSBackBarButtonItem.h" |
28 | 29 | #import "RNSConvert.h"
|
29 | 30 | #import "RNSDefines.h"
|
30 | 31 | #import "RNSScreen.h"
|
31 | 32 | #import "RNSScreenStackHeaderConfig.h"
|
32 | 33 | #import "RNSSearchBar.h"
|
33 |
| -#import "RNSUIBarButtonItem.h" |
34 | 34 |
|
35 | 35 | #ifdef RCT_NEW_ARCH_ENABLED
|
36 | 36 | namespace react = facebook::react;
|
@@ -673,7 +673,7 @@ + (void)updateViewController:(UIViewController *)vc
|
673 | 673 | #if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_26_0) && \
|
674 | 674 | __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_26_0
|
675 | 675 | if (@available(iOS 26.0, *)) {
|
676 |
| - // Workaround for missing search bar on root stack screen. |
| 676 | + // Workaround for missing search bar on root stack screen. |
677 | 677 | // See: https://github.com/software-mansion/react-native-screens/pull/3098
|
678 | 678 | navitem.searchBarPlacementAllowsToolbarIntegration = NO;
|
679 | 679 | }
|
@@ -746,10 +746,10 @@ - (void)configureBackItem:(nullable UINavigationItem *)prevItem API_UNAVAILABLE(
|
746 | 746 | prevItem.backButtonDisplayMode = config.backButtonDisplayMode;
|
747 | 747 |
|
748 | 748 | if (config.isBackTitleVisible) {
|
749 |
| - RNSUIBarButtonItem *backBarButtonItem = [[RNSUIBarButtonItem alloc] initWithTitle:resolvedBackTitle |
750 |
| - style:UIBarButtonItemStylePlain |
751 |
| - target:nil |
752 |
| - action:nil]; |
| 749 | + RNSBackBarButtonItem *backBarButtonItem = [[RNSBackBarButtonItem alloc] initWithTitle:resolvedBackTitle |
| 750 | + style:UIBarButtonItemStylePlain |
| 751 | + target:nil |
| 752 | + action:nil]; |
753 | 753 | auto shouldUseCustomBackBarButtonItem = config.disableBackButtonMenu;
|
754 | 754 | [backBarButtonItem setMenuHidden:config.disableBackButtonMenu];
|
755 | 755 |
|
|
0 commit comments