File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
packages/react-native-renderer/src Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -295,14 +295,8 @@ function diffProperties(
295
295
nextProp = nextProps [ propKey ] ;
296
296
297
297
if ( typeof nextProp === 'function' ) {
298
- if ( typeof attributeConfig === 'object' ) {
299
- // When the config for a function prop has a custom process method
300
- // we don't assume its a regular event handler, but use the process method:
301
- nextProp = attributeConfig . process ( nextProp ) ;
302
- if ( typeof prevProp === 'function' ) {
303
- prevProp = attributeConfig . process ( prevProp ) ;
304
- }
305
- } else {
298
+ const attributeConfigHasProcess = typeof attributeConfig === 'object' && typeof attributeConfig . process === 'function' ;
299
+ if ( ! attributeConfigHasProcess ) {
306
300
// functions are converted to booleans as markers that the associated
307
301
// events should be sent from native.
308
302
nextProp = ( true : any ) ;
You can’t perform that action at this time.
0 commit comments