mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This fixes the crash, here is why: When a block refers to `delegate_`, it actually refers to `this->delegate_`, which means it no retaining happening (there is no way to retain C++ class). That causes a crash when the block overlive the class instance. Making a local copy of `delegate_` enables proper ARC-powered retaining and prevents the crash. Changelog: [iOS] [Fixed] - Fixed crash in RCTImageResponseObserverProxy (Fabric) Reviewed By: sammy-SC Differential Revision: D17923548 fbshipit-source-id: 71aff44647730a5cc1996928c164d3892884b455