I' getting the output in class-based component, but I want to know how the same thing can be done in functional component
class Apps extends React.Component {
handleViewRef = ref => this.view = ref;
bounce = () => this.view.bounce(800)
render() {
return (
<View style={{margin:60}}>
<TouchableWithoutFeedback onPress={this.bounce}>
<Animatable.View ref={this.handleViewRef}>
<Text>Bounce me!</Text>
</Animatable.View>
</TouchableWithoutFeedback>
</View>
);
}
}