Files
react-native/packages
Kudo Chien de0c43ead4 Fix RCTAppSetupPrepareApp import error from .m (#42172)
Summary:
This PR tries to fix a build error when `import <React/RCTAppSetupUtils.h>` from *.m files. Since the `[[deprecated("")]]` syntax is a C++14 feature and it was placed inside the `RCT_EXTERN_C_BEGIN` block. If the file in imported from Objective-C *.m files or Swift files, it will have a syntax error. Instead of using the C++ syntax, this PR uses the `__deprecated_msg()` statement that is also used in other code in react-native and that is C supported syntax.

bypass-github-export-checks

## Changelog:

[IOS] [FIXED] - Fix RCTAppSetupPrepareApp.h import error from Objective-C *.m files

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

Test Plan:
- test building and importing **RCTAppSetupPrepareApp.h** from a *.m file
- test `RCTAppSetupPrepareApp(application, turboModuleEnabled)` will show a compile warning

Reviewed By: arushikesarwani94

Differential Revision: D52603421

Pulled By: cipolleschi

fbshipit-source-id: bfec8d0ba6378a265ad30dd8ca1d3ab15cff96ed
2024-01-09 02:34:49 -08:00
..