From 52268c5a1855212f4d9026a1c75c26f27def03fc Mon Sep 17 00:00:00 2001 From: Shahroz Khan Date: Mon, 26 Oct 2026 16:23:51 -0400 Subject: [PATCH] chore: drop the React Native < 0.71 podspec fallback `install_modules_dependencies` exists in every supported React Native version (0.77+), so the React-Core fallback never runs. The inbox view comment no longer names an iOS version, since the pod's own floor is what governs. Co-Authored-By: Claude Opus 5.5 --- customerio-reactnative.podspec | 8 ++------ ios/wrappers/inbox/ReactNotificationInboxView.swift | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/customerio-reactnative.podspec b/customerio-reactnative.podspec index 74cd05e2..01ff454c 100644 --- a/customerio-reactnative.podspec +++ b/customerio-reactnative.podspec @@ -19,13 +19,9 @@ Pod::Spec.new do |s| s.header_dir = "customerio_reactnative" s.source_files = "ios/wrappers/**/*.{h,m,mm,swift}" - # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0. + # React Native's helper for module dependencies, available in every supported version (0.77+). # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79. - if respond_to?(:install_modules_dependencies, true) - install_modules_dependencies(s) - else - s.dependency "React-Core" - end + install_modules_dependencies(s) # Syntax of native iOS pods allows for automatically upgrading to the latest major version of the iOS SDK. # Reference: https://guides.cocoapods.org/syntax/podfile.html#pod diff --git a/ios/wrappers/inbox/ReactNotificationInboxView.swift b/ios/wrappers/inbox/ReactNotificationInboxView.swift index 95ffc1f5..8b0d842f 100644 --- a/ios/wrappers/inbox/ReactNotificationInboxView.swift +++ b/ios/wrappers/inbox/ReactNotificationInboxView.swift @@ -6,8 +6,8 @@ import UIKit /// React Native wrapper hosting the SwiftUI `NotificationInboxView` (the Jist-rendered message /// list) inside a `UIHostingController`. No events; sizing is driven by the JS `style` prop. /// Message actions are handled by the existing global InboxEventListener. -/// No `@available` annotation, matching `ReactInlineMessageView`: the native list view is iOS 13+, -/// so the pod's own floor (`min_ios_version_supported`) governs. +/// No `@available` annotation, matching `ReactInlineMessageView`: the native list view needs nothing +/// newer than the pod's own floor (`min_ios_version_supported`), so that floor governs. @objc(ReactNotificationInboxView) class ReactNotificationInboxView: NSObject { private weak var containerView: UIView?