File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed
packages/react-native-renderer/src Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -494,21 +494,22 @@ function fastAddProperties(
494
494
} else {
495
495
continue ;
496
496
}
497
- } else if (
498
- typeof attributeConfig === 'object' &&
499
- typeof attributeConfig . process === 'function'
500
- ) {
501
- // An atomic prop with custom processing.
502
- newValue = attributeConfig . process ( prop ) ;
503
- } else if ( typeof prop === 'function' ) {
504
- // A function prop. It represents an event handler. Pass it to native as 'true'.
505
- newValue = true ;
506
- } else if ( typeof attributeConfig !== 'object' ) {
507
- // An atomic prop. Doesn't need to be flattened.
508
- newValue = prop ;
509
- } else if ( typeof attributeConfig . diff === 'function' ) {
510
- // An atomic prop with custom diffing. We don't need to do diffing when adding props.
511
- newValue = prop ;
497
+ } else if ( typeof attributeConfig === 'object' ) {
498
+ if ( typeof attributeConfig . process === 'function' ) {
499
+ // An atomic prop with custom processing.
500
+ newValue = attributeConfig . process ( prop ) ;
501
+ } else if ( typeof attributeConfig . diff === 'function' ) {
502
+ // An atomic prop with custom diffing. We don't need to do diffing when adding props.
503
+ newValue = prop ;
504
+ }
505
+ } else {
506
+ if ( typeof prop === 'function' ) {
507
+ // A function prop. It represents an event handler. Pass it to native as 'true'.
508
+ newValue = true ;
509
+ } else {
510
+ // An atomic prop. Doesn't need to be flattened.
511
+ newValue = prop ;
512
+ }
512
513
}
513
514
514
515
if ( newValue !== undefined ) {
You can’t perform that action at this time.
0 commit comments