Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
La carga de archivos de Firebase bloquea la aplicación React Native usando Expo

Estoy tratando de subir un archivo de video a Firebase, pero la aplicación falla sin ningún registro. No hay registros, la aplicación simplemente falla.

 const id = uuid.v4(); const path = `videos/${user.uid}/${id}`; try { const fileRef = ref(storage, path); const blob = await new Promise((resolve, reject) => { const xhr = new XMLHttpRequest(); xhr.onload = function() { resolve(xhr.response); }; xhr.onerror = function(e) { console.log(e); reject(new TypeError('Network request failed')); }; xhr.responseType = 'blob'; xhr.open('GET', uri, true); xhr.send(null); }); const uploadTask = uploadBytesResumable(fileRef, blob); uploadTask.on( 'state_changed', (snapshot) => { const prog = (snapshot.bytesTransferred / snapshot.totalBytes) * 100; callback(prog); }, (error) => { errorCallback(error); }, () => { getDownloadURL(uploadTask.snapshot.ref).then((downloadURL) => { console.warn('Complete', downloadURL); }); }, ); } catch (error) { console.log(error); }

El mismo código funciona bien en teléfonos Android pero falla en iOS.

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!