@react-native/codegen 0.74.0-nightly-20240111-371af3f1c → 0.74.0-nightly-20240113-e859f6c77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,11 +32,12 @@ extern "C" {
32
32
  #endif
33
33
 
34
34
  Class<RCTComponentViewProtocol> RCTThirdPartyFabricComponentsProvider(const char *name);
35
-
35
+ #if RCT_NEW_ARCH_ENABLED
36
36
  #ifndef RCT_DYNAMIC_FRAMEWORKS
37
37
 
38
38
  ${lookupFuncs}
39
39
 
40
+ #endif
40
41
  #endif
41
42
 
42
43
  #ifdef __cplusplus
@@ -35,11 +35,12 @@ extern "C" {
35
35
  #endif
36
36
 
37
37
  Class<RCTComponentViewProtocol> RCTThirdPartyFabricComponentsProvider(const char *name);
38
-
38
+ #if RCT_NEW_ARCH_ENABLED
39
39
  #ifndef RCT_DYNAMIC_FRAMEWORKS
40
40
 
41
41
  ${lookupFuncs}
42
42
 
43
+ #endif
43
44
  #endif
44
45
 
45
46
  #ifdef __cplusplus
@@ -31,9 +31,11 @@ const FileTemplate = ({lookupMap}) => `
31
31
 
32
32
  Class<RCTComponentViewProtocol> RCTThirdPartyFabricComponentsProvider(const char *name) {
33
33
  static std::unordered_map<std::string, Class (*)(void)> sFabricComponentsClassMap = {
34
+ #if RCT_NEW_ARCH_ENABLED
34
35
  #ifndef RCT_DYNAMIC_FRAMEWORKS
35
36
  ${lookupMap}
36
37
  #endif
38
+ #endif
37
39
  };
38
40
 
39
41
  auto p = sFabricComponentsClassMap.find(name);
@@ -34,9 +34,11 @@ const FileTemplate = ({lookupMap}: {lookupMap: string}) => `
34
34
 
35
35
  Class<RCTComponentViewProtocol> RCTThirdPartyFabricComponentsProvider(const char *name) {
36
36
  static std::unordered_map<std::string, Class (*)(void)> sFabricComponentsClassMap = {
37
+ #if RCT_NEW_ARCH_ENABLED
37
38
  #ifndef RCT_DYNAMIC_FRAMEWORKS
38
39
  ${lookupMap}
39
40
  #endif
41
+ #endif
40
42
  };
41
43
 
42
44
  auto p = sFabricComponentsClassMap.find(name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/codegen",
3
- "version": "0.74.0-nightly-20240111-371af3f1c",
3
+ "version": "0.74.0-nightly-20240113-e859f6c77",
4
4
  "description": "Code generation tools for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {