Skip to content

Commit 31c7fa0

Browse files
committed
Remove unnecessary code, update Paper
1 parent 6c26601 commit 31c7fa0

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

ios/bottom-tabs/screen/RNSBottomTabsScreenComponentView.mm

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ @implementation RNSBottomTabsScreenComponentView {
3838
BOOL _tabBarItemNeedsRecreation;
3939
BOOL _tabBarItemNeedsUpdate;
4040
BOOL _scrollEdgeEffectsNeedUpdate;
41-
BOOL _tabBarItemNeedsA11yUpdate;
4241
#endif // !RCT_NEW_ARCH_ENABLED
4342
}
4443

@@ -69,7 +68,6 @@ - (void)initState
6968
_tabBarItemNeedsRecreation = NO;
7069
_tabBarItemNeedsUpdate = NO;
7170
_scrollEdgeEffectsNeedUpdate = NO;
72-
_tabBarItemNeedsA11yUpdate = NO;
7371
#endif
7472

7573
// Prevents incorrect tab bar appearance after tab change on iOS 26.0
@@ -532,11 +530,6 @@ - (void)didSetProps:(NSArray<NSString *> *)changedProps
532530
_tabItemNeedsAppearanceUpdate = NO;
533531
}
534532

535-
if (_tabBarItemNeedsA11yUpdate) {
536-
[_controller updateTabItemA11yProps];
537-
_tabBarItemNeedsA11yUpdate = NO;
538-
}
539-
540533
if (_tabScreenOrientationNeedsUpdate) {
541534
[_controller tabScreenOrientationHasChanged];
542535
_tabScreenOrientationNeedsUpdate = NO;
@@ -579,13 +572,13 @@ - (void)setBadgeValue:(NSString *)badgeValue
579572

580573
- (void)setTabBarItemTestID:(NSString *)tabBarItemTestID
581574
{
582-
_controller.tabItemTestID = tabBarItemTestID;
575+
_tabItemTestID = tabBarItemTestID;
583576
_tabBarItemNeedsA11yUpdate = YES;
584577
}
585578

586579
- (void)setTabBarItemAccessibilityLabel:(NSString *)tabBarItemAccessibilityLabel
587580
{
588-
_controller.tabItemAccessibilityLabel = tabBarItemAccessibilityLabel;
581+
_tabItemAccessibilityLabel = tabBarItemAccessibilityLabel;
589582
_tabBarItemNeedsA11yUpdate = YES;
590583
}
591584

@@ -684,6 +677,7 @@ - (void)setSystemItem:(RNSBottomTabsScreenSystemItem)systemItem
684677
{
685678
_systemItem = systemItem;
686679
_tabBarItemNeedsRecreation = YES;
680+
_tabBarItemNeedsA11yUpdate = YES;
687681
}
688682

689683
- (void)setSpecialEffects:(NSDictionary *)specialEffects

ios/bottom-tabs/screen/RNSTabsScreenViewController.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ NS_ASSUME_NONNULL_BEGIN
5151
*/
5252
- (void)clearTabsSpecialEffectsDelegateIfNeeded:(nonnull id<RNSBottomTabsSpecialEffectsSupporting>)delegate;
5353

54-
/**
55-
* Update the values of accessibility props on the menu item for the screen managed by the controller.
56-
*/
57-
- (void)updateTabItemA11yProps;
58-
5954
@end
6055

6156
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)