react-native-wheel-scroll-picker
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -122,3 +122,5 @@ import React from 'react'; | ||
} | ||
this.sview.scrollTo({y: verticalElem}); | ||
if (this.sview) { | ||
this.sview.scrollTo({y: verticalElem}); | ||
} | ||
} | ||
@@ -193,3 +195,5 @@ if (this.state.selectedIndex === selectedIndex) { | ||
setTimeout(() => { | ||
this.sview.scrollTo({y}); | ||
if (this.sview) { | ||
this.sview.scrollTo({y}); | ||
} | ||
}, 0); | ||
@@ -196,0 +200,0 @@ } |
{ | ||
"name": "react-native-wheel-scroll-picker", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "a pure js picker, each option item customizable", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
55236
219