0x0ece / yopa-native

0 stars 2 forks source link

Wrong service list content after search, or addition of a service #85

Closed jacksilv closed 6 years ago

jacksilv commented 6 years ago

Attached a video that shows the bug on and ipad in landscape mode. After cancelling a search, the list doesn't show the right elements until we scroll it list-not-filled-after-filter.zip

0x0ece commented 6 years ago

I think this is related to the scrollToIndex, and I suspect #90 will fix this.

Basically, by telling to the FlatList to scrollToIndex(1) to "hide search", it actually skips rendering the element 0, i.e. the 1st service.

0x0ece commented 6 years ago

Fixed removing virtualization in https://github.com/0x0ece/yopa-native/pull/88/commits/947b9cfd00f463c7e1452357ad53d9edf1d29342