Skip to content

Commit 6cf12be

Browse files
committed
add nestedScrollEnabled props
1 parent 31f68fe commit 6cf12be

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/calendar-list/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ class CalendarList extends Component {
5959
/** How far from the end to trigger the onEndReached callback */
6060
onEndReachedThreshold: PropTypes.number,
6161
/** Called once when the scroll position gets within onEndReachedThreshold */
62-
onEndReached: PropTypes.func
62+
onEndReached: PropTypes.func,
63+
/** To put directly in flatList */
64+
nestedScrollEnabled: PropTypes.bool
6365
};
6466

6567
static defaultProps = {
@@ -72,7 +74,8 @@ class CalendarList extends Component {
7274
scrollsToTop: false,
7375
scrollEnabled: true,
7476
removeClippedSubviews: Platform.OS === 'android',
75-
keyExtractor: (item, index) => String(index)
77+
keyExtractor: (item, index) => String(index),
78+
nestedScrollEnabled: false
7679
};
7780

7881
constructor(props) {
@@ -307,6 +310,7 @@ class CalendarList extends Component {
307310
keyExtractor={this.props.keyExtractor}
308311
onEndReachedThreshold={this.props.onEndReachedThreshold}
309312
onEndReached={this.props.onEndReached}
313+
nestedScrollEnabled={this.props.nestedScrollEnabled}
310314
/>
311315
{this.renderStaticHeader()}
312316
</View>

0 commit comments

Comments
 (0)