react-native-picker-actionsheet
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "react-native-picker-actionsheet", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A picker like ActionSheet component which can be used in iOS & Android . Use Animated . ", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -19,7 +19,3 @@ import React from 'react'; | ||
this.state={maskerOpacity:new Animated.Value(this.props.show?.5:0),bottomPosition:new Animated.Value(this.props.show?1:0),show:this.props.show}; | ||
this.flag=false; | ||
} | ||
componentDidMount() { | ||
this.flag=true; | ||
} | ||
render(){ | ||
@@ -29,3 +25,3 @@ let item=[]; | ||
item.push(this.props.renderItem({item:this.props.data[i],index:i})); | ||
if(this.flag) | ||
if(this.state.show!==this.props.show) | ||
Animated.parallel([ | ||
@@ -32,0 +28,0 @@ Animated.timing( |
7225
113