Focus any Component

I was happy to see focus() added as a function, but then less happy to see it’s only for text-inputs. My use case is more around automatically scrolling to the bottom of a view on back. We could put a meaningless text-input at the end of each view, but it would be nicer if we could focus any arbitrary component e.g. a button that the user just used to link to a leaf view and then dismissed.

Probably more appropriate for the roadmap

Thanks for the feedback, and yes probably better suited for the roadmap, but this is also fine.

Luckily this, ie the ability to focus any component from JS, is already planned. So keep watching those release notes

1 Like