rn 事件

事件回调函数内使用了this,调用时需要bind(this)

	按下事件
		onPress={this.回调}
	
	文本内容改变事件
		onChangeText={this.回调}; 回调函数的形参为文本内容
发布了619 篇原创文章 · 获赞 3 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_43294560/article/details/105087855
RN