Skip to content

Commit da95299

Browse files
committed
fix: exclude RCT-Folly from prebuilt RN
1 parent 630bd8a commit da95299

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package/native-package/stream-chat-react-native.podspec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,15 @@ Pod::Spec.new do |s|
2828
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
2929
}
3030
s.dependency "React-Codegen"
31-
s.dependency "RCT-Folly"
31+
# Prebuilt RN modes already handle Folly (or don't expose RCT-Folly podspec).
32+
use_prebuilt_core = ENV['RCT_USE_PREBUILT_RNCORE'] == '1'
33+
use_prebuilt_deps = ENV['RCT_USE_RN_DEP'] == '1'
34+
unless use_prebuilt_core || use_prebuilt_deps
35+
s.dependency "RCT-Folly"
36+
end
3237
s.dependency "RCTRequired"
3338
s.dependency "RCTTypeSafety"
3439
s.dependency "ReactCommon/turbomodule/core"
3540
install_modules_dependencies(s)
3641
end
3742
end
38-

0 commit comments

Comments
 (0)