File tree 3 files changed +3
-2
lines changed 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-calendar-strip" ,
3
- "version" : " 1.2.2 " ,
3
+ "version" : " 1.2.3 " ,
4
4
"description" : " Easy to use and visually stunning calendar component for React Native" ,
5
5
"main" : " index.js" ,
6
6
"directories" : {
Original file line number Diff line number Diff line change @@ -482,6 +482,7 @@ export default class CalendarStrip extends Component {
482
482
let selectorSize = Math . round ( dayComponentWidth / 2.5 ) ;
483
483
let height = this . props . showMonth ? monthFontSize : 0 ;
484
484
height += this . props . showDate ? dayComponentWidth : 0 ; // assume square element sizes
485
+ selectorSize = Math . min ( selectorSize , height ) ;
485
486
486
487
this . setState ( {
487
488
dayComponentWidth,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class WeekSelector extends Component {
37
37
delete _nextProps . iconComponent ;
38
38
delete _props . iconComponent ;
39
39
40
- return JSON . stringify ( _props ) !== JSON . stringify ( _nextProps ) &&
40
+ return JSON . stringify ( _props ) !== JSON . stringify ( _nextProps ) ||
41
41
this . props . iconComponent !== nextProps . iconComponent ;
42
42
}
43
43
You can’t perform that action at this time.
0 commit comments