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.
2 parents ddb8bbd + fac46f1 commit d123708Copy full SHA for d123708
src/calendar-list/index.js
@@ -27,6 +27,9 @@ class CalendarList extends Component {
27
28
// Enable or disable vertical scroll indicator. Default = false
29
showScrollIndicator: PropTypes.bool,
30
+
31
+ // When true, the calendar list scrolls to top when the status bar is tapped. Default = true
32
+ scrollsToTop: PropTypes.bool
33
};
34
35
constructor(props) {
@@ -178,6 +181,7 @@ class CalendarList extends Component {
178
181
keyExtractor={(item, index) => index}
179
182
initialScrollIndex={this.state.openDate ? this.getMonthIndex(this.state.openDate) : false}
180
183
getItemLayout={this.getItemLayout}
184
+ scrollsToTop={this.props.scrollsToTop !== undefined ? this.props.scrollsToTop : true}
185
/>
186
);
187
}
0 commit comments