我正在学习本机反应,当我尝试在flex布局中使用TextInput组件时,它会消失.
index.android.js
//....
render(){
return (
<View style={ {flex:1,flexDirection:'row'}}>
<TextInput placeholder="test"/>
</View>
)
}
//....
Run Code Online (Sandbox Code Playgroud)
我很困惑.
您需要在 TextInput 上设置高度:
<TextInput placeholder="test" style={{ height:60 }} />
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2532 次 |
| 最近记录: |