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

164
Views
¿Cómo mostrar la hora y la fecha actuales en reaccionar nativo?
import React from 'react'; import {View, Text} from 'react-native'; const Date = () => { const date = new Date(); const n = date.toDateString(); const time = date.toLocaleTimeString(); console.log('Date: ' + n); console.log('Time: ' + time); return ( <View> <Text>{n}</Text> <Text>{time}</Text> </View> ); }; export default Date;

Recibo el error "indefinido no es un constructor, evaluando la nueva fecha ()" y el error "estado de llamada máximo excedido" Quiero mostrar la fecha en el formato

 Wed, 20 Jan 2022 9:30 PM

¿Como hacer esto?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Redefinió la variable Date ya que el componente tiene el mismo nombre. De esa forma, ya no podrá acceder a la Date original. Intente cambiar el nombre de su componente.

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