From bd7b507d257d436ba32e864d974d2741a962ee87 Mon Sep 17 00:00:00 2001 From: Thiago Brezinski Date: Sun, 20 Sep 2026 13:42:39 +0100 Subject: [PATCH] fix(ios): initialize bottom accessory Fabric props --- .changeset/small-accessory-props.md | 5 +++++ .../ios/RCTBottomAccessoryComponentView.mm | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/small-accessory-props.md diff --git a/.changeset/small-accessory-props.md b/.changeset/small-accessory-props.md new file mode 100644 index 00000000..fabc30ce --- /dev/null +++ b/.changeset/small-accessory-props.md @@ -0,0 +1,5 @@ +--- +'react-native-bottom-tabs': patch +--- + +Initialize the bottom accessory's Fabric props to prevent a crash when mounting an accessory on iOS. diff --git a/packages/react-native-bottom-tabs/ios/RCTBottomAccessoryComponentView.mm b/packages/react-native-bottom-tabs/ios/RCTBottomAccessoryComponentView.mm index 1dd9543d..9473d0d7 100644 --- a/packages/react-native-bottom-tabs/ios/RCTBottomAccessoryComponentView.mm +++ b/packages/react-native-bottom-tabs/ios/RCTBottomAccessoryComponentView.mm @@ -40,6 +40,7 @@ - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { static const auto defaultProps = std::make_shared(); + _props = defaultProps; if (@available(iOS 26.0, *)) { #if SWIFT_PACKAGE bottomAccessoryProvider = RNCCreateBottomAccessoryProvider(self);