We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77eacf5 commit 052416dCopy full SHA for 052416d
src/calendar/header/index.tsx
@@ -123,12 +123,12 @@ const CalendarHeader = forwardRef((props: CalendarHeaderProps, ref) => {
123
return subtractMonth();
124
}, [onPressArrowLeft]);
125
126
- const onPressRight = () => {
+ const onPressRight = useCallback(() => {
127
if (typeof onPressArrowRight === 'function') {
128
return onPressArrowRight(addMonth, month);
129
}
130
return addMonth();
131
- };
+ }, [onPressArrowRight]);
132
133
const onAccessibilityAction = (event: AccessibilityActionEvent) => {
134
switch (event.nativeEvent.actionName) {
0 commit comments