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

252
Views
Ninguno de estos archivos existe, firebase

Me encontré con un problema siguiendo un tutorial sobre cómo desarrollar un clon de WhatsApp a partir de un video de YouTube, la exposición me dice que:

Ninguno de estos archivos existe:

  • ..\firebase(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android. jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  • ..\firebase\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|. android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json) 4 | importar { useAssets } de 'expo-asset'; 5 | import { onAuthStateChanged } desde 'firebase/auth';

6 | importar {autorización} desde '../firebase'; | ^ 7 | 8 | LogBox.ignoreLogs([ 9 | "Configurar un temporizador",

No entiendo exactamente lo que está pasando, así que decidí buscar ayuda en línea, gracias de antemano, aquí está mi código y arreglos de archivos para ayudarlo a comprender mi proyecto:

 import { StatusBar } from 'expo-status-bar'; import React, { useState, useEffect } from 'react'; import { StyleSheet, Text, View, LogBox } from 'react-native'; import { useAssets } from 'expo-asset'; import { onAuthStateChanged } from 'firebase/auth'; import { auth } from '../firebase'; LogBox.ignoreLogs([ "Setting a timer", "Async storage has been extracted from react-native core" ]); function App() { const [currUser, setCurrUser] = useState(null) const [loading, setLoading] = useState(true) useEffect(()=> { const unsubscribe = onAuthStateChanged(auth, user => { setLoading(false); if(user){ setCurrUser(user); } }); return () => unsubscribe(); }, []); if(loading){ return <Text>Loading ...</Text> } return ( <View style={styles.container}> <Text>{JSON.stringify(currUser)}</Text> <StatusBar style="auto" /> </View> ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, }); function Main(){ const [assets] = useAssets( require("./assets/icon-square.png"), require("./assets/chatbg.png"), require("./assets/user-icon.png"), require("./assets/welcome-img.png") ) // le (!assets) veux dire que si il n'y a PAS if(!assets){ return <Text>Loading ...</Text> } return <App />; } export default Main

arreglo de código

about 4 years ago · Juan Pablo Isaza
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!