Closed syampolskiy closed 6 years ago
what's the PieDemo
, is it from Animated.createAnimatedComponent(Pie)
please notice series={[this.props.series]}
class PieDemo extends Component {
render() {
return (
<View style={styles.container}>
<View>
<Pie
radius={150}
innerRadius={145}
series={[this.props.series]}
colors={['#f00']}
backgroundColor='#ddd' />
<View style={styles.gauge}>
<Text style={styles.gaugeText}>60%</Text>
</View>
</View>
</View>
)
}
}
const AnimatedPieDemo = Animated.createAnimatedComponent(PieDemo)
...
<AnimatedPieDemo series={this.state.progress}/>
...
thank you so much! one more moment - animation is not smooth. is it the problem of Android SDK Simulator or it will have the same behavior on a real device?
I am not able to get animation working. Can you please post a sample code here?
Animation should starts after pressing on TouchableOpacity. any ideas why does not it work?