callstack / callstack/react-native-paper

left and right prop of TextInput should accept other than icons

Abierto
#4,808 0 comentarios 2 reacciones 0 asignados Ver en GitHub
feature request
Lenguaje dominante
TypeScript
Estrellas
14.5k
Forks
2.2k
Merge medio
5 d 23 h
PR fusionados (30 d)
12

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza leyendo las definiciones de las props de TextInput y la implementación de sus elementos izquierdo y derecho. Compara el manejo actual de TextInput.Icon y TextInput.Affix con los ejemplos solicitados de Chip y ActivityIndicator. Debe considerarse terminado cuando ambas props admitan el contenido mostrado que no sea un icono, manteniendo las formas compatibles existentes.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
react-native, typescript
Área
frontend, mobile
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.