callstack / callstack/react-native-paper

How to have a label and a placeholder on a textinput at the same time

オープン
#4,352 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
TypeScript
スター
14.5k
フォーク
2.2k
平均マージ
5日 23時間
マージ済み PR(30日)
12

説明

### Ask your Question

If you have both a `label` and a `placeholder` prop at the same time, then on initial render, the label will show but then the placeholder doesnt show until the input is focused like so:

https://github.com/callstack/react-native-paper/assets/56619430/7a23d59d-b705-461f-ab4a-43636b12b904

is there a way to have both the label and the placeholder exist at the same time even when the input isnt focused. in other words, is there a way to make the text input always look like this with the label at the top?
![Screen Shot 2024-03-21 at 11 02 34 PM](https://github.com/callstack/react-native-paper/assets/56619430/83599277-fb28-4f00-af5f-4dfa992d5ce6)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。