aksonov / aksonov/react-native-tabs

Double-tap scroll to top

未關閉
#39 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
727
分支
112
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。