mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45846 In general this diff fixes all crashes related to RTCImageUtills happened because of uncovered cases in switch. In this current bug the problem was in this part of code RCTTargetSize(imageSize, imageScale, frame.size, RCTScreenScale(), (RCTResizeMode)self.contentMode, YES); when we cast UIViewContentMode to RCTResizeMode. RCTResizeMode doesnt cover all of UIViewContentMode values. So just added default cases to swithces in places where it was lost. Changelog: [iOS][Fixed] - fixed crash in RCTImageUtils Reviewed By: philIip Differential Revision: D60523540 fbshipit-source-id: b8027537c600a7ca226e62238d16a6b05301d4de