码迷,mamicode.com
首页 > 其他好文 > 详细

react-native点击事件

时间:2018-09-26 01:16:03      阅读:738      评论:0      收藏:0      [点我收藏+]

标签:react   on()   pre   点击事件   native   ati   nat   reac   点击   

点击事件

<View>
<Button title="点击事件" onPress={this._onPressButton.bind(this)}/>
</View>

_onPressButton() {
alert(‘点击事件亦被促发‘);
}

react-native点击事件

标签:react   on()   pre   点击事件   native   ati   nat   reac   点击   

原文地址:https://www.cnblogs.com/boonook/p/9704317.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!