CalendarPicker icon indicating copy to clipboard operation
CalendarPicker copied to clipboard

vertical line divider after selecting a date range

Open grantalba opened this issue 3 years ago • 10 comments

https://stackoverflow.com/questions/64747135/how-to-remove-the-line-divider-in-the-react-native-calendar-picker-after-selec

See picture in stackoverflow.

grantalba avatar Nov 11 '20 04:11 grantalba

Haven't seen that before. Are you seeing that on a physical device or the emulator? Which device and/or emulator?

peacechen avatar Nov 11 '20 19:11 peacechen

ios emulator and physical device

jingfreeks avatar Nov 15 '20 05:11 jingfreeks

I apologize for not having time to debug this. Please submit a PR if you find the bug.

peacechen avatar Dec 11 '20 06:12 peacechen

dayLabelsWrapper = {{borderWidth:0,borderColor:'white'}}

just add whatever ur background color is to the bordercolor

PrabhakarKotipalli avatar Mar 10 '21 08:03 PrabhakarKotipalli

@PrabhakarKotipalli that is a different issue. Refer to the picture in the attached post.

I am also experiencing this issue. iPhone 11 emulator.

Simulator Screen Shot - iPhone 11 - 2021-04-28 at 22 03 37

pallpointben avatar Apr 29 '21 02:04 pallpointben

I see something similar on the Expo Go app running on iOS. Same code works fine with react-native-web which is very cool.

Screen Shot 2021-05-20 at 4 28 37 PM

Here is some test code...

`

return ( <View style={styles.container}>

  <CalendarPicker
    allowRangeSelection={true}

    minDate={minDate}
    maxDate={maxDate}

    todayBackgroundColor="#f2e6ff"
    selectedDayColor="#7300e6"
    selectedDayTextColor="#FFFFFF"

    onDateChange={_onDateChange}

    disabledDates={disabledDates}
    selectedDisabledDatesTextStyle={{
      color: "#FF0000"
    }}
    disabledDatesTextStyle={{
      color: "#FF00FF"
    }}
  />

</View>

);

`

metasection avatar May 20 '21 20:05 metasection

Same issue facing in all IOS device alone but in android it works well.

any idea about this?

image

rajeshkannanrajagopal avatar May 25 '21 07:05 rajeshkannanrajagopal

This has been open for almost a year now. Is there still no resolution to this?

I'm experiencing the same issue: image

I'm using react-native-calendar-picker:^7.12. This happens when selecting a range of dates with the following code:

<CalendarPicker allowRangeSelection />

This is all the code you need to be able to repro this issue, then you just need to select a range between two dates.

Upd. I've found that this happens because there's a decimal number specified as the width (for me it was 55.2 on iPhone 11 Sim)

rayjackson13 avatar Sep 08 '21 05:09 rayjackson13

Unfortunately I didn't have time to debug this. It seems to be device/OS specific so I had a difficult time recreating it. Happy to see that @rayjackson13 found the cause. Would you submit a PR to restrict widths to integer values?

peacechen avatar Sep 08 '21 15:09 peacechen

@peacechen it looks like a PR has been open for this since October 2021. Any idea when this fix will go in?

talon-himself avatar Mar 04 '22 23:03 talon-himself