aksonov / aksonov/react-native-tabs

Double-tap scroll to top

Abierto
#39 1 comentario 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
727
Forks
112
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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](https://facebook.github.io/react-native/docs/accessibility.html#onaccessibilitytap-ios) method which lets you define what to do on a double-tap. There's also a [hand-rolled check](https://gist.github.com/mrzmyr/9ac94ca4622c1602a2a3) (that I'm less-inclined to use).

This library is used in [react-native-router-flux](https://github.com/aksonov/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()](http://facebook.github.io/react-native/releases/0.32/docs/scrollview.html#scrollto) on the subview that the tab displays.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.