Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T183626616 - [KP][WP iOS v] App crashes after rotation in landscape v…
…iew during playing a video. (#45846) Summary: Pull Request resolved: #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
- Loading branch information