react-native-ui-datepicker icon indicating copy to clipboard operation
react-native-ui-datepicker copied to clipboard

Why is dayContainerStyle not applied on days not in the current month?

Open NorthBlue333 opened this issue 1 year ago • 0 comments

Hi there, Just trying to custom the date picker style. Why are dates oustide of the current month not using the dayContainerStyle?

https://github.com/farhoudshapouran/react-native-ui-datepicker/blob/bd0cea9ac92dd5d2e85c4b231d853413bb40a32f/src/components/Day.tsx#L56

I have also other issues with styling some containers:

  • The DaySelector container has a top padding of 5 which is not editable; the workaround which works only with a fixed height is to set add 5 (the padding top value) to the desired height
  • The container inside the Header also has a padding which is not editable neither; the workaround is to put a negative margin on the Header container style
  • There is also no way to set justify-content: space-between on the main container, nor to add children directly in the main container; we could use a custom Calendar.tsx based on the package's one, but with children and custom styles props, is this the way?

Thanks!

NorthBlue333 avatar Sep 27 '24 17:09 NorthBlue333