mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix processColor ESM for codegen
Summary: Changelog: [Internal] Fix broken usage of `processColor` Reviewed By: GijsWeterings Differential Revision: D42346452 fbshipit-source-id: 20be00210f5b68c15292c8a8c1cd918b23fb1fd6
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0c53420a7a
commit
fdc2836305
+3
-3
@@ -107,7 +107,7 @@ export const __INTERNAL_VIEW_CONFIG = {
|
||||
|
||||
validAttributes: {
|
||||
tintColor: {
|
||||
process: require('react-native/Libraries/StyleSheet/processColor'),
|
||||
process: require('react-native/Libraries/StyleSheet/processColor').default,
|
||||
},
|
||||
},
|
||||
};
|
||||
@@ -502,11 +502,11 @@ export const __INTERNAL_VIEW_CONFIG = {
|
||||
},
|
||||
|
||||
color: {
|
||||
process: require('react-native/Libraries/StyleSheet/processColor'),
|
||||
process: require('react-native/Libraries/StyleSheet/processColor').default,
|
||||
},
|
||||
|
||||
thumbTintColor: {
|
||||
process: require('react-native/Libraries/StyleSheet/processColor'),
|
||||
process: require('react-native/Libraries/StyleSheet/processColor').default,
|
||||
},
|
||||
|
||||
point: {
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ function getReactDiffProcessValue(typeAnnotation: PropTypeAnnotation) {
|
||||
switch (typeAnnotation.name) {
|
||||
case 'ColorPrimitive':
|
||||
return j.template
|
||||
.expression`{ process: require('react-native/Libraries/StyleSheet/processColor') }`;
|
||||
.expression`{ process: require('react-native/Libraries/StyleSheet/processColor').default }`;
|
||||
case 'ImageSourcePrimitive':
|
||||
return j.template
|
||||
.expression`{ process: require('react-native/Libraries/Image/resolveAssetSource') }`;
|
||||
|
||||
+3
-3
@@ -142,7 +142,7 @@ export const __INTERNAL_VIEW_CONFIG = {
|
||||
|
||||
validAttributes: {
|
||||
tintColor: {
|
||||
process: require('react-native/Libraries/StyleSheet/processColor'),
|
||||
process: require('react-native/Libraries/StyleSheet/processColor').default,
|
||||
},
|
||||
},
|
||||
};
|
||||
@@ -812,11 +812,11 @@ export const __INTERNAL_VIEW_CONFIG = {
|
||||
},
|
||||
|
||||
color: {
|
||||
process: require('react-native/Libraries/StyleSheet/processColor'),
|
||||
process: require('react-native/Libraries/StyleSheet/processColor').default,
|
||||
},
|
||||
|
||||
thumbTintColor: {
|
||||
process: require('react-native/Libraries/StyleSheet/processColor'),
|
||||
process: require('react-native/Libraries/StyleSheet/processColor').default,
|
||||
},
|
||||
|
||||
point: {
|
||||
|
||||
Reference in New Issue
Block a user