aksonov / react-native-tabs

React Native platform-independent tabs. Could be used for bottom tab bars as well as sectioned views (with tab buttons)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double-tap scroll to top

chandlervdw opened this issue · comments

I'm willing to submit a PR for this but I want to make sure the approach I take makes sense.

React-native has an onAccessibilityTap method which lets you define what to do on a double-tap. There's also a hand-rolled check (that I'm less-inclined to use).

This library is used in react-native-router-flux and so I'm not sure if it makes sense to create a PR here or there.

Essentially, I'd use onAccessibilityTap to fire off scrollTo() on the subview that the tab displays.

commented

Is it possible to use this feature now?