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

StoriesList.js:78 componentWillReceiveProps的设置理解 #58

Open
deathfang opened this issue Mar 9, 2016 · 2 comments
Open

StoriesList.js:78 componentWillReceiveProps的设置理解 #58

deathfang opened this issue Mar 9, 2016 · 2 comments

Comments

@deathfang
Copy link

StoriesList.js:78

componentWillReceiveProps(nextProps) {
this.fetchStories(nextProps.theme, true);
},

这里的设置的意义不理解?
断点查看 每次进入StoryScreen后 都会fetch次

另外问下 这个项目不更新了吗?想学习源码,iOS9测试 theme功能都没有显示出来

@race604
Copy link
Owner

race604 commented Mar 18, 2016

这里表示每次设置 theme 的时候,都需要重新获取一下对应 theme 的数据。
另外,这个项目应该不会有大的修改,基本功能都已经完成了,而且 RN 涉及的知识点都已经涵盖了。

@deathfang
Copy link
Author

@race604 最近看 https://github.com/facebook/react-native/blob/master/Examples/UIExplorer/UIExplorerApp.ios.js

NavigationExperimental的功能很强大,有reducer,可自定义 title leftButton rightButton

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

2 participants