Skip to content

Commit 5cb4721

Browse files
authored
chore: drop support for < RN 0.71 (#325)
* chore: drop support for < RN 0.71 * Create chilly-chefs-divide.md
1 parent aae4759 commit 5cb4721

File tree

2 files changed

+6
-25
lines changed

2 files changed

+6
-25
lines changed

.changeset/chilly-chefs-divide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-native-bottom-tabs": patch
3+
---
4+
5+
chore: drop support for < RN 0.71 (podspec)
Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
require "json"
22

33
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4-
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5-
new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
64

75
Pod::Spec.new do |s|
86
s.name = "react-native-bottom-tabs"
@@ -30,27 +28,5 @@ Pod::Spec.new do |s|
3028
'DEFINES_MODULE' => 'YES'
3129
}
3230

33-
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
34-
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
35-
if respond_to?(:install_modules_dependencies, true)
36-
install_modules_dependencies(s)
37-
else
38-
s.dependency "React-Core"
39-
40-
# Don't install the dependencies when we run `pod install` in the old architecture.
41-
if new_arch_enabled then
42-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
43-
s.pod_target_xcconfig = {
44-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
45-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
46-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
47-
}
48-
s.dependency "React-RCTFabric"
49-
s.dependency "React-Codegen"
50-
s.dependency "RCT-Folly"
51-
s.dependency "RCTRequired"
52-
s.dependency "RCTTypeSafety"
53-
s.dependency "ReactCommon/turbomodule/core"
54-
end
55-
end
31+
install_modules_dependencies(s)
5632
end

0 commit comments

Comments
 (0)