Fix bug that prevents the Old Arch from being enabled (#49896)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49896

This change makes possible to opt-out from the New Architecture.

Env variables are always `string`s in ruby and the check was always failing because it was comparing it with a number (always false)

## Changelog:
[iOS][Fixed] - enable back the opt-out from the New Architecture

Reviewed By: cortinico

Differential Revision: D70789827

fbshipit-source-id: 7d3f96c3db22f2715dec2b649534b20e3273ea3e
This commit is contained in:
Riccardo Cipolleschi
2025-03-10 10:59:58 +00:00
committed by React Native Bot
parent 8421b8a872
commit 2f4dbc64b7
@@ -157,6 +157,6 @@ class NewArchitectureHelper
end
def self.new_arch_enabled
return ENV["RCT_NEW_ARCH_ENABLED"] == 0 ? false : true
return ENV["RCT_NEW_ARCH_ENABLED"] == '0' ? false : true
end
end