Skip to content

Commit 1cb0cba

Browse files
fix(apple): show New Architecture experimental warning only for older React Native versions (#2415)
1 parent 0bfbbf1 commit 1cb0cba

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ios/pod_helpers.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,13 @@ def use_hermes?(options)
111111
def use_new_architecture!(options, react_native_version)
112112
return unless new_architecture_enabled?(options, react_native_version)
113113

114-
Pod::UI.warn(
115-
'As of writing, New Architecture (Fabric) is still experimental and ' \
116-
'subject to change. For more information, please see ' \
117-
'https://reactnative.dev/docs/next/new-architecture-intro.'
118-
)
114+
if react_native_version < v(0, 76, 0)
115+
Pod::UI.warn(
116+
'As of writing, New Architecture (Fabric) is still experimental and ' \
117+
'subject to change. For more information, please see ' \
118+
'https://reactnative.dev/docs/next/new-architecture-intro.'
119+
)
120+
end
119121

120122
options[:fabric_enabled] = true
121123
options[:new_arch_enabled] = true

0 commit comments

Comments
 (0)