import React,{Component} from 'react';
import {View,Button,Text,TouchableOpacity,TextInput} from 'react-native';
export default class Demo09Component extends Component{
handlePress(){
alert('press');
}
render(){
return <TouchableOpacity onPress={this.handlePress}>
<Text>哈哈哈</Text>
<TextInput secureTextEntry={true} keyboardType="numeric" placeholder="请输入用户名"></TextInput>
</TouchableOpacity>
}
}
react native TouchableOpacity(点击渐变) TextInput
最新推荐文章于 2021-10-21 16:17:07 发布