question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Date disappear when selected on android

See original GitHub issue

Date disappear when selected on android 126860407_762164497702148_3410939019826670620_n

<CalendarStrip
          scrollable
          style={styles.calendar}
          showMonth={false}
          calendarColor={'#FFFFFF'}
          calendarHeaderStyle={{color: 'black'}}
          dateNumberStyle={{color: 'black'}}
          dateNameStyle={{color: 'black'}}
          iconContainer={{flex: 0.1}}
          daySelectionAnimation={{
            type: 'background',

            highlightColor: '#d3d3d3',
          }}
          selectedDate={selectedDate}
          onDateSelected={this.onDateSelected}
          markedDates={date => {
            if (date.dayOfYear() === moment().dayOfYear()) {
              return {
                dots: [
                  {
                    color: 'black',
                  },
                ],
              };
            }
          }}
        />

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

1reaction
josue-castrocommented, Dec 2, 2020

Im using react-native with expo and I just noticed I have this same issue on android. I need some quick fixing for school project. When I select a date it disappears but then if I select another the previous one is visible again.

I even set the following props in case the default highlight was white, but it did not work. My calendar background color is white. highlightDateNameStyle={‘black’} highlightDateNumberStyle={‘black’}

Well for some reason I just tried this again and it work. If your calendar color is white make sure to set a highlightDateNameStyle color. Try their expo snack and you can see it works on android. They have blue background and yellow on highlightDateNameStyle. Hope is not something that sometimes work and sometimes doesnt

0reactions
HassanHaiderIXcommented, Jan 27, 2021

@gaurav0044 any solutions? try adding this so that date changes back to original color once it is unselected dateNameStyle={{color: ‘black’}} dateNumberStyle={{color: ‘black’}}

Read more comments on GitHub >

github_iconTop Results From Across the Web

Date and Time disappeared, how can I get it back?
It sounds like you inadvertently removed the date/time widget. Long press anywhere on an empty part of the homescreen, tap Widgets, then select...
Read more >
Why has the date disappeared in my calendar? It used to be ...
Hello, i'm having the same problem here, on Xiaomi Poco M3. The current date highlight is gone, the number of the day hidden...
Read more >
What to do when Google calendar events disappear
Step 5: Click on the buttons Clear Data and Clear Cache. Finish off by exiting Settings and opening the Google Calendar app again....
Read more >
Why does an Spinner disappear and reappear again on touch?
The problem is that each time I touch outside the spinner (say on an EditText ) - the spinner's item layout disappears for...
Read more >
Why do projects disappear from the list when assigned to a ...
When assigning a project to a date (so not deadline), ... How to let users schedule posts to be published at a specific...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found