We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
_.extend(this.props.fetch_url_param, query_params ), 这种写法是有问题的,extend, 会去修改第一个object, 但是props不应该被修改,而且没效果
函数里,如果出现了forEach这种, this变量变成了函数自身,而不是本来的this了
var that = this
this.state.history_querys.forEach(function(query){ querys.push( <TouchableOpacity onPress={() => that.set_query(query)} > <View> <Text style={styles.history_text}>{query}</Text> </View> </TouchableOpacity> ); });
16, 在simluator已经运行起来的情况下,替换图片,并没有生效 17, react-native组件的props输入变更后,只会调用willupdate, 但是render中使用的如果并不直接是props, 那页面是不会刷新的.
正确的流程是,通过didupdate, 去更新state, 而view里使用state
The text was updated successfully, but these errors were encountered:
No branches or pull requests
var that = this
16, 在simluator已经运行起来的情况下,替换图片,并没有生效
17, react-native组件的props输入变更后,只会调用willupdate, 但是render中使用的如果并不直接是props, 那页面是不会刷新的.
正确的流程是,通过didupdate, 去更新state, 而view里使用state
21, 具体到某个元素的上下对齐时,抽离出一个view, 指定大小,背景,如
How to vertical center and horizontal center <Text>xxx/<Text> ? facebook/react-native#325
The text was updated successfully, but these errors were encountered: