File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
packages/react-native-bottom-tabs/ios Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import SwiftUI
22
3- @objc public class BottomAccessoryProvider : PlatformView {
3+ @objc public class BottomAccessoryProvider : NSObject {
44 private weak var delegate : BottomAccessoryProviderDelegate ?
55
66 @objc public convenience init ( delegate: BottomAccessoryProviderDelegate ) {
Original file line number Diff line number Diff line change 1717using namespace facebook ::react;
1818
1919@interface RCTBottomAccessoryComponentView () <BottomAccessoryProviderDelegate> {
20+ BottomAccessoryProvider* bottomAccessoryProvider;
2021}
2122@end
2223
@@ -32,7 +33,7 @@ - (instancetype)initWithFrame:(CGRect)frame
3233 if (self = [super initWithFrame: frame]) {
3334 static const auto defaultProps = std::make_shared<const BottomAccessoryViewProps>();
3435 if (@available (iOS 26.0 , *)) {
35- self. contentView = [[BottomAccessoryProvider alloc ] initWithDelegate: self ];
36+ bottomAccessoryProvider = [[BottomAccessoryProvider alloc ] initWithDelegate: self ];
3637 }
3738 }
3839
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ struct BottomAccessoryRepresentableView: PlatformViewRepresentable {
119119 }
120120
121121 private func emitPlacementChanged( for uiView: PlatformView ) {
122- if let contentView = uiView. value ( forKey: " contentView " ) as? BottomAccessoryProvider {
122+ if let contentView = uiView. value ( forKey: " bottomAccessoryProvider " ) as? BottomAccessoryProvider {
123123 contentView. emitPlacementChanged ( tabViewBottomAccessoryPlacement)
124124 }
125125 }
You can’t perform that action at this time.
0 commit comments