callstack / callstack/react-native-paper

TextInput component's right prop should accept any React.ReactNode content

Aperta
#2,866 10 commenti 1 reazione 0 assegnatari Vedi su GitHub
enhancement Hacktoberfest Stale TextInput
Lingua principale
TypeScript
Stelle
14.5k
Fork
2.2k
Merge medio
5g 23h
PR unite (30g)
12

Descrizione

**Is your feature request related to a problem? Please describe.**
I want to be able to show an `ActivityIndicator` as the `right` prop for the `TextInput` to show loading states.

**Describe the solution you'd like**
The `TextInput` component's `right` prop should accept any `React.ReactNode` content and render it on the right side of the input.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
This is what I would expect the final result to look like
Screen Shot 2021-08-20 at 8 44 39 AM

react-native: 0.65.1
react-native-paper: 4.9.2
react-native-vector-icons: 8.1.0

repro: [snack example](https://snack.expo.dev/q_-DRFxH_)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.