File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export interface CalendarHeaderProps {
5757 /** Apply custom disable color to selected day names indexes */
5858 disabledDaysIndexes ?: number [ ] ;
5959 /** Replace default title with custom one. the function receive a date as parameter */
60- renderHeader ?: ( date ?: XDate ) => ReactNode ; //TODO: replace with string
60+ renderHeader ?: ( date ?: XDate , info ?: Pick < CalendarHeaderProps , 'testID' > ) => ReactNode ; //TODO: replace with string
6161 /** Replace default title with custom element */
6262 customHeaderTitle ?: JSX . Element ;
6363 /** Test ID */
@@ -204,7 +204,7 @@ const CalendarHeader = forwardRef((props: CalendarHeaderProps, ref) => {
204204 const webProps = Platform . OS === 'web' ? { 'aria-level' : webAriaLevel } : { } ;
205205
206206 if ( renderHeader ) {
207- return renderHeader ( month ) ;
207+ return renderHeader ( month , { testID } ) ;
208208 }
209209
210210 if ( customHeaderTitle ) {
You can’t perform that action at this time.
0 commit comments