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

List api 调整 #257

Closed
yiminghe opened this issue Sep 14, 2016 · 8 comments
Closed

List api 调整 #257

yiminghe opened this issue Sep 14, 2016 · 8 comments
Assignees
Milestone

Comments

@yiminghe
Copy link
Contributor

http://facebook.github.io/react-native/docs/listview.html

  • 去除 List.Body List.Footer List.Header
  • title footer 改为 renderFooter renderHeader
@yiminghe yiminghe added this to the 1.0 milestone Sep 14, 2016
@foriacus foriacus mentioned this issue Sep 14, 2016
10 tasks
liqi07 pushed a commit that referenced this issue Sep 14, 2016
@afc163
Copy link
Member

afc163 commented Sep 14, 2016

#63

直接 title={<div></div} footer={<div></div>} 吧,renderHeader 意义不大,因为函数没有传参。

@yiminghe
Copy link
Contributor Author

同 ListView 保持一致

@pingan1927
Copy link
Contributor

这个我认可修改,原先的title也会保留,1.0

@yiminghe
Copy link
Contributor Author

title 不保留的, 1.0 不考虑兼容以前

@pingan1927
Copy link
Contributor

那又得再升一遍了。。 大悲剧啊!

@pingan1927
Copy link
Contributor

尝试修改,感觉renderFooterrenderHeadertitlefooter都没有List.FooterList.Header来的实在好用。要定制样式,要套好多层,不能直接传入style,要添加onClick,都需要自己再封装一个div标签,
何必呢?

pingan1927 added a commit that referenced this issue Sep 20, 2016
foriacus pushed a commit that referenced this issue Sep 20, 2016
* master:
  refactor List API remove List.Body #257
  chore: disabled deprecated warning
@susan-github
Copy link

虽然之前用title属性的时候,发现了它不可扩展这点不太友好,但是把List.Body List.Footer List.Header这些全部去掉了,实在是。。。。要升级的话,不是要改好多

@lock
Copy link

lock bot commented May 28, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants