TextInput broken with writingDirection
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C++
- Sterne
- 127k
- Forks
- 25.3k
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den obligatorischen Reproduzierer unter https://github.com/maphongba008/input-writing-direction-issue mit React Native 0.81.5 auf iOS auszuführen, verwende das bereitgestellte TextInput-Beispiel und teste sowohl die Werte ltr als auch rtl für writingDirection. Erledigt ist die Aufgabe, wenn der Text korrekt dargestellt wird, bevor das Eingabefeld den Fokus erhält, ohne dass es fokussiert werden muss.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- react-native
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100