Skip to content

Commit e3854e9

Browse files
authored
fix: hide calender view when spinner mode is selected on android tablets (#601)
1 parent 75cf05b commit e3854e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

android/src/main/java/com/reactcommunity/rndatetimepicker/RNDismissableDatePickerDialog.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,9 @@ private void fixSpinner(Context context, int year, int month, int dayOfMonth, RN
106106
throw new RuntimeException(e);
107107
}
108108
}
109+
if (display == RNDatePickerDisplay.SPINNER){
110+
if(this.getDatePicker() != null)
111+
this.getDatePicker().setCalendarViewShown(false);
112+
}
109113
}
110114
}

0 commit comments

Comments
 (0)