[英]placeholder textinput not displaying (react native)
我的占位符沒有顯示在我的文本輸入中,有人可以幫助我嗎? 我正在使用本機反應
<TextInput
style={{
height: "15%",
margin: 12,
border: 1,
borderColor: "white",
borderStyle: "solid",
placeholder: "this is a test",
padding: 10,
borderRadius: 20,
width: "70%",
backgroundColor: "#E5E5E5"
}}
></TextInput>;
直接使用占位符屬性,不通過 css 樣式 <TextInput..... placeholder="your text">
請參閱反應本機文檔: https://reactnative.dev/docs/textinput
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.