callstack / callstack/react-native-paper
left and right prop of TextInput should accept other than icons
- Dominant language
- TypeScript
- Stars
- 14.5k
- Forks
- 2.2k
- Avg merge
- 5d 23h
- Merged PRs (30d)
- 12
Description
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
}
/>
```
I know there might be some workaround like wrapper pattern, Is it possible that RNP provides this feature internally ?
MUI --
I want to achieve something like this in terms of UI
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.