react-native-common-date-picker
Advanced tools
Comparing version
# Change Log | ||
## 2.3.3(July 15, 2020) | ||
- Fix: remove "onViewableItemsChanged" method because it will cause crash on Android release | ||
## 2.3.2(July 12, 2020) | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "react-native-common-date-picker", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "An awesome and cross-platform React Native date picker and calendar component for iOS and Android", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -100,2 +100,3 @@ import React, {Component} from 'react'; | ||
_scrollEnd = ({contentOffset}) => { | ||
this._removeTimer(); | ||
const y = contentOffset.y; | ||
@@ -128,8 +129,5 @@ const {rowHeight} = this.state; | ||
this._scrollEnd(nativeEvent); | ||
this._removeTimer(); | ||
}, 150); | ||
}; | ||
_onViewableItemsChanged = ({viewableItems}) => this._removeTimer(); | ||
_getFlatListStyle = () => { | ||
@@ -216,2 +214,3 @@ const {textMarginHorizontal} = this.state; | ||
_onScroll = ({nativeEvent}) => { | ||
this._removeTimer(); | ||
const {rowHeight, initialRow} = this.state; | ||
@@ -249,3 +248,2 @@ const offsetY = nativeEvent.contentOffset.y; | ||
keyExtractor={(item, index) => index.toString()} | ||
onViewableItemsChanged={this._onViewableItemsChanged} | ||
onScrollEndDrag={this._onScrollEndDrag} | ||
@@ -252,0 +250,0 @@ onMomentumScrollEnd={this._onMomentumScrollEnd} |
110797
02215
-0.05%