A framework for building native applications using React
Fix crash in RCTImageComponentView.didReceiveImage
Summary: Changelog: [Internal] I went over the ownership model in this call `_state->getData().getImageRequest().getImageInstrumentation().didSetImage();` 1. `getData()` returns reference to an object that is copied to state. 2. `getImageRequest()` returns a reference to an object that is strongly owned by `ImageState`. 3. `getImageInstrumentation()` returns a reference to an object that is strongly owned by `ImageRequest`. I don't think any of these can cause a crash, however `_state` can be nullptr. Reviewed By: shergin Differential Revision: D19599258 fbshipit-source-id: 317f03cd9a53d83f64ccbb9f9abfce10fcc1fae5
S
Samuel Susla committed
af1762cce516b2fbfc920ed818bd9feaa41b33ea
Parent: f7c6066
Committed by Facebook Github Bot <[email protected]>
on 1/28/2020, 8:04:31 PM