react native
djshichaoren
Don't show me your code, give me five C币
展开
-
react native invariant violation: Maximum update depth exceeded.This can happen when a component rep
这个原因是在render中使用了setState,导致了重复刷新,render函数死循环了。 如果生成的控件的componentDidMount等加载时运行的函数中含有setState,那么也不能在render中生成这个控件,而要在 componentWillMount中生成这个控件,否则也会造成死循环。 ...原创 2020-04-01 16:32:00 · 3341 阅读 · 0 评论 -
mac使用Charles获取React Native网络包
参考此教程:https://blog.csdn.net/windy135/article/details/79086270 在charles中右键需要host行,便可以有enable ssl proxying,但enable以后会发现手机模拟器打开页面时会抛出异常, 此时重启手机模拟器即可 1. proxy -> macOS proxy打钩 2.在proxy->...原创 2019-08-07 14:31:59 · 737 阅读 · 0 评论