I'm developing an app using React Native. There, I want to scroll into a View
when I press a button. I've tried something like this.
render() {
return(
<View ref={field => this.myView = field} >
//something inside the view
</View>
)
}
then, tried
this.myView.focus()
But, it doesn't work.
I want to get the result as shown in the following GIF demo. How to do this?