diff --git a/.changeset/wicked-tables-deny.md b/.changeset/wicked-tables-deny.md new file mode 100644 index 00000000..a1db092b --- /dev/null +++ b/.changeset/wicked-tables-deny.md @@ -0,0 +1,5 @@ +--- +"react-native-node-api": patch +--- + +Warn on "pod install" with the new architecture disabled diff --git a/packages/host/react-native-node-api.podspec b/packages/host/react-native-node-api.podspec index 5066e82d..74107aab 100644 --- a/packages/host/react-native-node-api.podspec +++ b/packages/host/react-native-node-api.podspec @@ -17,6 +17,10 @@ unless defined?(@xcframeworks_copied) @xcframeworks_copied = true end +if ENV['RCT_NEW_ARCH_ENABLED'] == '0' + Pod::UI.warn "React Native Node-API doesn't support the legacy architecture (but RCT_NEW_ARCH_ENABLED == '0')" +end + Pod::Spec.new do |s| s.name = package["name"] s.version = package["version"]