callstack / callstack/react-native-paper

left and right prop of TextInput should accept other than icons

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

説明

I was going through `TextInput` props and saw that `left` prop only accepts below

> It can be either TextInput.Icon or TextInput.Affix

In material UI (MUI) react web version, start accepts `Icon` as well as other type of `React.ReactNode`

I was trying to do something like this

```js
console.log('Remove chip')}
style={{ marginRight: 4 }}
>
Apple

}
right={
loading ? (
} />
) : undefined
}
/>
```
Image

I know there might be some workaround like wrapper pattern, Is it possible that RNP provides this feature internally ?

MUI --
Image

I want to achieve something like this in terms of UI

Thanks

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

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

評価

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

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

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