Vydia / react-native-background-upload

Upload files in your React Native app even while it's backgrounded. Supports Android and iOS, including camera roll assets.
MIT License
730 stars 333 forks source link

fix: check if UTI exists #272

Closed nkovacic closed 3 years ago

nkovacic commented 3 years ago

Fixes a crash if UTI is null on Mac M1 simulators:

Summary

Solves a crash on startUpload method when testing on Mac M1 iPhone Simulator, more info on already existing pull request (https://github.com/invertase/react-native-firebase/issues/4661)

What's required for testing (prerequisites)?

Apple Mac M1 series

What are the steps to reproduce (after prerequisites)?

Any call to Upload.startUpload crashes on iOS simulator.

Compatibility

OS Implemented
iOS
Android

Checklist

github-actions[bot] commented 3 years ago

:tada: This PR is included in version 6.4.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: