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.

endingDay & startingDay are not displayed correct on Android.

See original GitHub issue

Description

endingDay and startingDay =true doesn’t works properly on Android working without Expo. It works when using expo.

Expected Behavior

Marking with rounded edges.

Observed Behavior

Marking as a rectangle ( as if it had startingDay & endingDay = false).

bildschirmfoto 2018-09-24 um 12 35 17

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-calendars: 1.20.0
  • npm ls react-native: 0.57.1

Emulator Nexus 5 : API 28 (Android 9) Huawei Mediapad M5: API 26 (Android 8)

Reproducible Demo

mDates[“2018-10-05”] = { startingDay: true, color: lockColor, textColor:‘black’, endingDay: true, selection:false}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:16

github_iconTop GitHub Comments

116reactions
elgalesmanacommented, Feb 14, 2019

as mentioned from @ahanriat , to fix this we need add overflow: hidden into base stylesheet from day period. And since the PR still not merged https://github.com/wix/react-native-calendars/pull/728 , you can try to solve the issue like this :

theme={{
  'stylesheet.day.period': {
      base: {
        overflow: 'hidden',
        height: 34,
        alignItems: 'center',
        width: 38,
      }
  }
}}
9reactions
wojciechvercommented, Nov 23, 2018

+1

npm ls react-native-calendars: 1.21.0 npm ls react-native: 0.57.5

Having the same issue on android (works fine on iOS). It’s only present after a selection is made on the calendar. If a period is sent to the calendar on open, it rounds the corners properly.

on load: screen shot 2018-11-23 at 14 53 34

after new selection: screen shot 2018-11-23 at 14 51 09

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Calendars
In this solution you can get current date and also Events details would show against Date. Here is Documentation Link
Read more >
How to Turn On or Off Autocorrect for Android and ...
Choose Text correction and scroll down to the Corrections section. Locate the toggle labeled Auto-correction and slide it into the On position.
Read more >
Privacy Policy - Biometric Attendance System For SMEs | Biot
Logging in to app; Displaying dashboard; Starting day from remote location; Ending day from remote location; Meeting at remote location ...
Read more >
Create customized and shareable calendars in React Native
There are no mandatory props here — use the component with no props in ... will change according to the startingDay and endingDay...
Read more >
Privacy Policy
We will not use or share your information with anyone except as described in ... Displaying dashboard; Starting day from remote location; Ending...
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