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 {
57
57
/** Apply custom disable color to selected day names indexes */
58
58
disabledDaysIndexes ?: number [ ] ;
59
59
/** 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
61
61
/** Replace default title with custom element */
62
62
customHeaderTitle ?: JSX . Element ;
63
63
/** Test ID */
@@ -204,7 +204,7 @@ const CalendarHeader = forwardRef((props: CalendarHeaderProps, ref) => {
204
204
const webProps = Platform . OS === 'web' ? { 'aria-level' : webAriaLevel } : { } ;
205
205
206
206
if ( renderHeader ) {
207
- return renderHeader ( month ) ;
207
+ return renderHeader ( month , { testID } ) ;
208
208
}
209
209
210
210
if ( customHeaderTitle ) {
You can’t perform that action at this time.
0 commit comments