React-native-navigation: [iOS] ScrollView/FlatList *BUG* after changing route/pushing/showing modal while there is a momentum scroll

Created on 2 Jul 2017  路  9Comments  路  Source: wix/react-native-navigation

Issue Description

There is a bug when you have a ScrollView / FlatList (haven't tried with others) on one screen and you switch (/ push / show) to a different screen while ScrollView / FlatList is scrolling with a momentum, when you return back to the prev. screen (screen with ScrollView / FlatList) it's children / cells would not respond to touches until: a) you scroll ScrollViewto the end/top (with a bounce) b) the cell item re-renders (FlatList)

Steps to Reproduce / Code Snippets / Screenshots

https://github.com/grundmanise/react-native-navigation-scrollview-bug

  1. Scroll few items (ScrollView should not bounce, i.e. do not scroll till the end of the list)
  2. While there is a momentum scrolling => switch to the 2nd tabbar screen
  3. Return to the 1st screen and try to click a FlatList cell => cells are not responsive.

Environment

  • React Native Navigation version: 1.1.104
  • React Native version: 0.44.0
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator & Device, 10.3, Debug & Release

Most helpful comment

Fixed in v1.1.169

All 9 comments

+1 I am able to reproduce this issue in the app in a ListView. I have seen it a couple of times earlier also but I couldn't put a finger on the steps to reproduce. Thanks @grundmanise for pinpointing the issue. I am not sure if this has always been there or introduced later.

@DanielZlotin Do you guys also face this bug in the Wix app?

@gran33 Think you could look into this during guild day tomorrow? It reproduces consistently in our app as well.

@DanielZlotin yes. I can reproduce it over and over again.

I try to put some light on this limbo case (yes super important).
Any extra info will be appreciated.

Fixed in v1.1.169

I think this is still broken for TextView @DanielZlotin @gran33

image

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RCTTextView scrollViewDidEndDecelerating:]: unrecognized selector sent to instance 0x7fd51a0641c0'

I also experienced the crash that @blairvanderhoof reported.

I think this breaks when doing swipe to dismiss, you can't touch on the previous screen until you scroll again. Removing this patch altogether fixes it. Do we need this patch?

Was this page helpful?
0 / 5 - 0 ratings