@react-native/codegen 0.79.1 → 0.79.3

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.
@@ -60,7 +60,7 @@ function getReactDiffProcessValue(typeAnnotation) {
60
60
  );
61
61
  case 'ImageSourcePrimitive':
62
62
  return expression(
63
- `{ process: require('react-native/Libraries/Image/resolveAssetSource') }`,
63
+ "{ process: ((req) => 'default' in req ? req.default : req)(require('react-native/Libraries/Image/resolveAssetSource')) }",
64
64
  );
65
65
  case 'ImageRequestPrimitive':
66
66
  throw new Error('ImageRequest should not be used in props');
@@ -75,7 +75,7 @@ function getReactDiffProcessValue(typeAnnotation: PropTypeAnnotation) {
75
75
  );
76
76
  case 'ImageSourcePrimitive':
77
77
  return expression(
78
- `{ process: require('react-native/Libraries/Image/resolveAssetSource') }`,
78
+ "{ process: ((req) => 'default' in req ? req.default : req)(require('react-native/Libraries/Image/resolveAssetSource')) }",
79
79
  );
80
80
  case 'ImageRequestPrimitive':
81
81
  throw new Error('ImageRequest should not be used in props');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/codegen",
3
- "version": "0.79.1",
3
+ "version": "0.79.3",
4
4
  "description": "Code generation tools for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {