Skip to content

Commit 7adf510

Browse files
committed
add is object chec
1 parent 2d205b9 commit 7adf510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native-renderer/src/ReactNativeAttributePayloadFabric.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ function fastAddProperties(
478478
} else {
479479
continue;
480480
}
481-
} else if (typeof attributeConfig.process === 'function') {
481+
} else if (typeof attributeConfig === 'object' && typeof attributeConfig.process === 'function') {
482482
// An atomic prop with custom processing.
483483
newValue = attributeConfig.process(prop);
484484
} else if (typeof prop === 'function') {

0 commit comments

Comments
 (0)