ptomasroos/react-native-scrollable-tab-view

scrollview jumps on orientation change

Open

#518 geöffnet am 3. Jan. 2017

Auf GitHub ansehen
 (9 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.276 Forks)batch import
help wanted

Repository-Metriken

Stars
 (6.912 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

When you enable orientation change the lock itself on pixel position, all the tabs rerender to fit the new width, but scroll is locked so in the view you see different tab than before, the animation slides to the new position of selected tab. See recording rotationbug

The code with minimal implementation to reproduce the bug is available on github.com/lenkavon/rn-orientation-playground

There is also generalised question on stackoverflow

Contributor Guide