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

我想知道SegmentedView里是如何实现不重新调用子view的render方法的 #431

Open
wanglaohushiwo opened this issue Aug 3, 2020 · 1 comment

Comments

@wanglaohushiwo
Copy link

看segmentedview源码看了一遍,本来以为会在SegmentedView.Sheet的子view里重写shouldComponentUpdate方法(当opatity变化时不更新),但是却没有重写shouldComponentUpdate方法

@wanglaohushiwo
Copy link
Author

找到原因了,是这个原因导致的,大家可以去查this.props.children not re-rendered on parent state change

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

No branches or pull requests

1 participant