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
React Native 如何热更新? #390
Comments
ReactNative 不清楚更新机制如何。不过 Web 的快了,build 和 server 会基于 https://github.com/sorrycc/roadhog 实现。 |
@sorrycc |
近期没有计划,如果谁有做过,可以提供点线索。RN 的热替换和 React 的有啥区别吗? |
我開發react native時,Component如果用const 建立就無法hot reloading,用class建立就可以,可以試試看。 |
詳細一點,就是使用es6 class建立的component可以hot reloading, 使用stateless function建立的無法,我現在是使用class 建立 container component,用 stateless function 建立presentational component 。 |
经过无数次尝试,证明楼上的的说法有一定道理,但不完全正确,更正如下: |
@r4ggj 有没有例子呢,现在很烦,无法热加载,只能刷新,我用的是dva + react-navigation |
每次都手动刷新,影响开发效率,在考虑是否用dva了
The text was updated successfully, but these errors were encountered: