aksonov / aksonov/react-native-tabs

Double-tap scroll to top

オープン
#39 コメント 1 件 リアクション 1 件 担当者 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 を短くまとめたダイジェスト。