File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -405,14 +405,14 @@ const ExpandableCalendar = (props: ExpandableCalendarProps) => {
405405 }
406406 } ;
407407
408- const closeCalendar = ( ) => {
408+ const closeCalendar = useCallback ( ( ) => {
409409 setTimeout ( ( ) => {
410410 // to allows setDate to be completed
411411 if ( isOpen ) {
412412 bounceToPosition ( closedHeight ) ;
413413 }
414414 } , 0 ) ;
415- } ;
415+ } , [ isOpen ] ) ;
416416
417417 /** Events */
418418
@@ -516,7 +516,7 @@ const ExpandableCalendar = (props: ExpandableCalendarProps) => {
516516 const renderKnob = ( ) => {
517517 return (
518518 < View style = { style . current . knobContainer } testID = { `${ testID } -knob` } pointerEvents = { 'box-none' } >
519- < TouchableOpacity style = { style . current . knob } testID = { CALENDAR_KNOB } onPress = { closeCalendar } hitSlop = { knobHitSlop } />
519+ < TouchableOpacity style = { style . current . knob } testID = { CALENDAR_KNOB } onPress = { closeCalendar } hitSlop = { knobHitSlop } activeOpacity = { ! isOpen ? 1 : undefined } />
520520 </ View >
521521 ) ;
522522 } ;
You can’t perform that action at this time.
0 commit comments