mirror of
https://github.com/status-im/react-native.git
synced 2025-02-19 12:57:00 +00:00
Summary: This PR fixes the issue of height/width being nil in line no 128 of RCTImagePickerManager.m . ` [self _dismissPicker:picker args:tempImageTag ? @[tempImageTag, height, width] : nil]; ` Fixes#20411 Test Plan ---------- To verify the fix , please make the changes to make either height, width or both `nil ` in `- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<NSString *, id> *)info` function of RCTImagePickerManager.m , run the code , you will see the error saying , one of the argument is nil from the array .   Now run the code with the fix , it will not crash . Release Notes: -------------- [IOS][BUGFIX][RCTImagePickerManager] - Change in RCTImagePickerManager to handle crashes if height/width is nil . Pull Request resolved: https://github.com/facebook/react-native/pull/20454 Differential Revision: D9061059 Pulled By: hramos fbshipit-source-id: b17f58e411f97f9b904cca0de6c151312c732972