Closed dododoSA closed 2 years ago
Still have the issue ... Can't believe we're the only two facing cause I would think that more people on expo try to upload media to firebase.
Closing as there is a follow-up issue in another repo. Moreover the mentioned RN version is really old. Would be worth trying on RN 0.69 and re-opening if the issue persists
Description
The app crashes when I try to save the images I took to Firebase Storage. (This only happens on iOS)
After checking line by line using console.log, I found that the crash occurred at the point where XMLHttpRequest is used, as shown below.
Crash Log
Version
0.64.3
Output of
react-native info
System: OS: macOS 11.5.2 CPU: (8) arm64 Apple M1 Memory: 80.69 MB / 8.00 GB Shell: 3.3.1 - /opt/homebrew/bin/fish Binaries: Node: 14.17.6 - ~/.nodebrew/current/bin/node Yarn: 1.22.11 - ~/.nodebrew/current/bin/yarn npm: 6.14.15 - ~/.nodebrew/current/bin/npm Watchman: Not Found Managers: CocoaPods: Not Found SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: Not Found IDEs: Android Studio: Arctic Fox 2020.3.1 Patch 4 Arctic Fox 2020.3.1 Patch 4 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 11.0.12 - /Users/akihiro/.sdkman/candidates/java/current/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
Snack, code example, screenshot, or link to a repository
The app crashes when retrieving an image file as shown below.
If you use setTimeout to delay the timing of resolve, it will work without crashing. (I am not sure why.)