import React,{ Component } from 'react'
import {
Platform,
StyleSheet,
View,
Text,
Image,
TextInput
} from 'react-native'
export default class App extends Component{
render() {
return(
< View style={styles.container}>
<TextInput style={styles.textInputStyle} placeholder='test' clearButtonMode={'always'}>
</TextInput>
</View>
)
}
}
const styles = StyleSheet.create({
container:{
flex:1,
backgroundColor:'white',
justifyContent:'center',
alignItems:'stretch'
},
textInputStyle:{
marginLeft:25,
paddingLeft:20,
paddingRight:20,
marginRight:25,
height:80,
borderWidth:1,
borderColor:'gray',
borderRadius:40,
}
});
TextInput组件
猜你喜欢
转载自blog.csdn.net/qq_17190231/article/details/88181361
今日推荐
周排行