react native TouchableOpacity(點選漸變) TextInput

spfLinux發表於2018-01-31
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>
    }
}

相關文章