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

163
Views
Conditional rendering once a day in React native

I have a Text component which I would like to show up once a day in my journal to divide logs from different days by using ternary operation. My guess was to use a JS date object which I named getDay, but it just returns me a current day every time after each log.

Here is my code:

 {getDay ? (<Text style={{ marginLeft: 8, color: '#33466960', fontFamily: 'Montserrat' }}>{getDay}</Text>) : null}

My JS date object: const date = new Date(); const getDay = date.getDate();

My guess is that I need a different way to provide getDay with current date.

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!