Commit cd17949 1 parent 1bd8ce3 commit cd17949 Copy full SHA for cd17949
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ export default class Slide extends React.Component{
50
50
componentWillReceiveProps ( newProps ) {
51
51
let newState = this . _getStateFromProps ( newProps ) ;
52
52
this . setState ( newState ) ;
53
+ clearTimeout ( this . timer ) ;
53
54
React . Children . count ( this . state . children ) && this . state . autoPlay && this . _autoPlay ( ) ;
54
55
}
55
56
@@ -92,7 +93,6 @@ export default class Slide extends React.Component{
92
93
93
94
_autoPlay ( ) {
94
95
var interval = this . state . autoPlay ;
95
- clearTimeout ( this . timer ) ;
96
96
this . timer = setTimeout ( ( ) => {
97
97
if ( Platform . OS === 'ios' ) {
98
98
this . setState ( {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-slide" ,
3
- "version" : " 0.2.0 " ,
3
+ "version" : " 0.2.1 " ,
4
4
"description" : " react-native-slide" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments