Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

点击发送消息后,聊天列表不会更新,必须要手动滑一下才会更新,这是为什么呢? #61

Closed
sarsbug opened this issue Jun 28, 2017 · 6 comments

Comments

@sarsbug
Copy link

sarsbug commented Jun 28, 2017

点击发送消息后,聊天列表不会更新,必须要手动滑一下才会更新,这是为什么呢?

@Jorble
Copy link

Jorble commented Jul 18, 2017

是不是你布局问题啊

@KenChoi1992
Copy link
Contributor

@Jorble 你有没有出现这个问题?

@Jorble
Copy link

Jorble commented Aug 17, 2017

发送第一张图片的时候有时候会,后面基本都会自动显示最后一条的。可能是你布局遮住了吧。

@KenChoi1992
Copy link
Contributor

@sarsbug 调试发现,原生的插入数据后,执行了 onBindViewHolder,在 RN 中则没有执行,不知道什么原因。

@KenChoi1992
Copy link
Contributor

发布了 0.4.13, 修复了这个问题。

@jianhui1012
Copy link

由于在Android中ReacNative重写了requestLayout方法,接管了绘制,measure,layout两个方法不会自动调用;
在Android中自定义控件需要重写requestLayout,并强制调用measure,layout两个方法;
详情可以查看stackoverflow:React Native: Resize custom UI component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants