Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class Carousel extends Component {
this._clearTimer();
}

componentWillReceiveProps({ children }) {
UNSAFE_componentWillReceiveProps({ children }) {
if (!isEqual(this.props.children, children)) {
const { currentPage } = this.state;
this._clearTimer();
Expand Down Expand Up @@ -408,6 +408,7 @@ export default class Carousel extends Component {
onScrollBeginDrag={this._onScrollBegin}
onMomentumScrollEnd={this._onScrollEnd}
onScroll={this._onScroll}
scrollEventThrottle={16}
alwaysBounceHorizontal={false}
alwaysBounceVertical={false}
contentInset={{ top: 0 }}
Expand Down