aksonov / aksonov/react-native-tabs
Double-tap scroll to top
- 主要語言
- 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 還沒有評估資料。