aksonov / aksonov/react-native-tableview

After rerender table using Cells flickers and scrolls back to the top

Đang mở
#192 3 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Objective-C
Star
1.4k
Fork
179
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Code for reproduction is here: https://github.com/henrikra/react-native-tableview/blob/append-items-bug/example/src/screens/Example9.js

## What I would like to achieve
I would like to achieve that always when I add new items to the end of the list the list will scroll to the bottom.

## What works 💚

I can achieve that when using `Item` from this library.
### Gif
![bug works](https://user-images.githubusercontent.com/12229968/48132505-7c1f4600-e29c-11e8-87ca-4abc9b4dab83.gif)

## What doesn't work 🔴

When I use exactly the same code except I use `Cell` instead of `Item` it will flash and also start from the top again and also it does not animate to the bottom.
### Gif
![bug does not work](https://user-images.githubusercontent.com/12229968/48132621-e6d08180-e29c-11e8-8bfb-6b6d3d7ed3d1.gif)

## Conclusion

Looks like bug to me 😢 I would really hope this will get fixed because `Item` is too limited for me. I have to style the component. I can help also to resolve this issue if you guys point me to right place to look.

If this is not fixable do you have other suggestions on these kind of React Native iOS libraries?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.