TextInput broken with writingDirection
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C++
- Estrellas
- 127k
- Forks
- 25.3k
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 4
Descripción
Description
TextInput UI was broken with writingDirection, both ltr and rtl. It will display correctly if we focus the input
import { TextInput, View } from 'react-native'
export default function HomeScreen() {
return (
<View style={{ flex: 1, paddingTop: 50, backgroundColor: '#FFF' }}>
<View style={{ flexDirection: 'row', gap: 8 }}>
<TextInput
value={
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Velit morbi nisi aptent condimentum nisi fringilla rutrum sociis senectus ac. Torquent mauris risus ultricies aenean vitae erat mollis congue dui mus'
}
placeholder='Enter your text here'
numberOfLines={1}
multiline={false}
style={{
borderWidth: 1,
borderColor: 'black',
borderRadius: 5,
alignSelf: 'stretch',
writingDirection: 'rtl',
paddingHorizontal: 2,
height: 40
}}
/>
</View>
</View>
)
}
Steps to reproduce
Use the code snippet above
React Native Version
0.81.5
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
% npx @react-native-community/cli info
error: unknown command 'info'
(Did you mean init?)
Stacktrace or Logs
none
MANDATORY Reproducer
https://github.com/maphongba008/input-writing-direction-issue
Screenshots and Videos
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza ejecutando el reproductor obligatorio en https://github.com/maphongba008/input-writing-direction-issue con React Native 0.81.5 en iOS, usando el ejemplo de TextInput proporcionado y probando tanto los valores ltr como rtl de writingDirection. Se considera terminado cuando el texto se renderiza correctamente antes de que la entrada reciba el foco, sin depender de enfocarla.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- react-native
- Área
- mobile
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100