From 9f1b15f524d99e8fabd67b344bb4ecba6808d362 Mon Sep 17 00:00:00 2001 From: Oleksandr Zavarzin Date: Mon, 2 Nov 2026 10:16:37 +0100 Subject: [PATCH] fix(ios): set default props for the bottom accessory view --- .changeset/bottom-accessory-default-props.md | 5 +++++ .../ios/RCTBottomAccessoryComponentView.mm | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/bottom-accessory-default-props.md diff --git a/.changeset/bottom-accessory-default-props.md b/.changeset/bottom-accessory-default-props.md new file mode 100644 index 00000000..4096375a --- /dev/null +++ b/.changeset/bottom-accessory-default-props.md @@ -0,0 +1,5 @@ +--- +'react-native-bottom-tabs': patch +--- + +Fix an iOS crash in debug builds when `renderBottomAccessoryView` is used. 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);