Skip to content

Commit b026acc

Browse files
author
Abdalla Mohamed Elabd
committed
fix(CalendarList): add scrollsToTop prop
1 parent d9aad53 commit b026acc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/calendar-list/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class CalendarList extends Component {
2727

2828
// Enable or disable vertical scroll indicator. Default = false
2929
showScrollIndicator: PropTypes.bool,
30+
31+
// When true the scroll view scrolls to top when the status bar is tapped
32+
scrollsToTop: PropTypes.bool
3033
};
3134

3235
constructor(props) {
@@ -178,6 +181,7 @@ class CalendarList extends Component {
178181
keyExtractor={(item, index) => index}
179182
initialScrollIndex={this.state.openDate ? this.getMonthIndex(this.state.openDate) : false}
180183
getItemLayout={this.getItemLayout}
184+
scrollsToTop={this.props.scrollsToTop}
181185
/>
182186
);
183187
}

0 commit comments

Comments
 (0)