Correctly update the warning message for OSS vs Internal (#50486)

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

Those 2 messages are inverted. Let's fix it.

Changelog:
[Internal] [Changed] -

Reviewed By: cipolleschi

Differential Revision: D72451355

fbshipit-source-id: 6aa0636d2cfaf7bf017c376d4d984afb351e1cd8
This commit is contained in:
Nicola Corti authored and Facebook GitHub Bot committed 2025-04-07 03:09:59 -07:00
1 parent 786c6e8043
commit 22baacd6fb
1 file changed
+2 -2
@@ -33,12 +33,12 @@ public object LegacyArchitectureLogger {
private val exceptionMessage: String
get() =
if (OSS_LEGACY_WARNINGS_ENABLED) {
"is being executed when app is fully running on the NEW Architecture."
} else {
"is being executed when `legacyWarningsEnabled` is enabled. " +
"You're accessing a legacy API that will be removed in a future version of React Native. " +
"You should investigate the stacktrace you find below and understand which class is " +
"accessing this API and clean it up."
} else {
"is being executed when app is fully running on the NEW Architecture."
}
/**