From da65f8338872dee7e5d03489f7c2c1acb632228b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwas=CC=81niewski?= Date: Mon, 3 Mar 2025 13:40:42 +0100 Subject: [PATCH 1/2] chore: drop support for < RN 0.71 --- .../react-native-bottom-tabs.podspec | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/packages/react-native-bottom-tabs/react-native-bottom-tabs.podspec b/packages/react-native-bottom-tabs/react-native-bottom-tabs.podspec index e1d71432..d4b92897 100644 --- a/packages/react-native-bottom-tabs/react-native-bottom-tabs.podspec +++ b/packages/react-native-bottom-tabs/react-native-bottom-tabs.podspec @@ -1,8 +1,6 @@ require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) -folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' -new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' Pod::Spec.new do |s| s.name = "react-native-bottom-tabs" @@ -30,27 +28,5 @@ Pod::Spec.new do |s| 'DEFINES_MODULE' => 'YES' } - # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0. - # 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" - - # Don't install the dependencies when we run `pod install` in the old architecture. - if new_arch_enabled then - s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1" - s.pod_target_xcconfig = { - "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"", - "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1", - "CLANG_CXX_LANGUAGE_STANDARD" => "c++17" - } - s.dependency "React-RCTFabric" - s.dependency "React-Codegen" - s.dependency "RCT-Folly" - s.dependency "RCTRequired" - s.dependency "RCTTypeSafety" - s.dependency "ReactCommon/turbomodule/core" - end - end + install_modules_dependencies(s) end From 7f0b50a2445cf32e21ddcd6c32fd65ef2c0355e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwa=C5=9Bniewski?= Date: Mon, 3 Mar 2025 13:59:42 +0100 Subject: [PATCH 2/2] Create chilly-chefs-divide.md --- .changeset/chilly-chefs-divide.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/chilly-chefs-divide.md diff --git a/.changeset/chilly-chefs-divide.md b/.changeset/chilly-chefs-divide.md new file mode 100644 index 00000000..9769a4a2 --- /dev/null +++ b/.changeset/chilly-chefs-divide.md @@ -0,0 +1,5 @@ +--- +"react-native-bottom-tabs": patch +--- + +chore: drop support for < RN 0.71 (podspec)