@react-native/codegen 0.79.0-nightly-20250130-40575f26d → 0.79.0-nightly-20250131-64c2a52ca

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.
@@ -77,7 +77,7 @@ function getReactDiffProcessValue(typeAnnotation) {
77
77
  switch (typeAnnotation.elementType.name) {
78
78
  case 'ColorPrimitive':
79
79
  return j.template
80
- .expression`{ process: require('react-native/Libraries/StyleSheet/processColorArray').default }`;
80
+ .expression`{ process: ((req) => 'default' in req ? req.default : req)(require('react-native/Libraries/StyleSheet/processColorArray')) }`;
81
81
  case 'ImageSourcePrimitive':
82
82
  case 'PointPrimitive':
83
83
  case 'EdgeInsetsPrimitive':
@@ -91,7 +91,7 @@ function getReactDiffProcessValue(typeAnnotation: PropTypeAnnotation) {
91
91
  switch (typeAnnotation.elementType.name) {
92
92
  case 'ColorPrimitive':
93
93
  return j.template
94
- .expression`{ process: require('react-native/Libraries/StyleSheet/processColorArray').default }`;
94
+ .expression`{ process: ((req) => 'default' in req ? req.default : req)(require('react-native/Libraries/StyleSheet/processColorArray')) }`;
95
95
  case 'ImageSourcePrimitive':
96
96
  case 'PointPrimitive':
97
97
  case 'EdgeInsetsPrimitive':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/codegen",
3
- "version": "0.79.0-nightly-20250130-40575f26d",
3
+ "version": "0.79.0-nightly-20250131-64c2a52ca",
4
4
  "description": "Code generation tools for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {