-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Closed
Labels
BugComponent: TextInputRelated to the TextInput component.Related to the TextInput component.Platform: AndroidAndroid applications.Android applications.Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Description
Is this a bug report?
Yes
Have you read the Bugs section of the Contributing to React Native Guide?
Yes
Environment
react-native -v
:
react-native-cli: 2.0.1
react-native: 0.45.1
(edit: it reproduces in 0.54.2 according to the comments -@hramos)
node -v
:v7.7.2
npm -v
:4.1.2
yarn --version
(if you use Yarn):N/A
Then, specify:
- Target Platform (e.g. iOS, Android): Android
- Development Operating System (e.g. macOS Sierra, Windows 10): macOS Sierra 10.12.5
- Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant): Android Studio 2.3.2. Compile SDK 23. Build tools 23.0.1
Steps to Reproduce
- Create a TextInput that fits 100% width of the screen
- Set the TextInput's
value
to a string that will render larger than the width of the text view - Run in Android and note which part of the string renders
- Run in iOS and note which part of the string renders
Expected Behavior
Both iOS and Android should exhibit the same behavior and display the beginning of the text when unfocused.
Ideally, the ellipsis should also be an optional parameter to display when unfocused on both Android and iOS.
Actual Behavior
iOS displays the beginning of the text, ellipsizing the remaining text before truncating.
Android displays the end of the text with no ellipsis at the beginning.
Reproducible Demo
Example project: https://snack.expo.io/S1Lty1oN-
To view the issue, launch the example project and preview in Android. Then preview in iOS. Note the differences between where ellipsis show and which part of the sentence displays.
steveccable, xbox1994, GitHubTracey, jamesholcomb, apurvajain and 30 more
Metadata
Metadata
Assignees
Labels
BugComponent: TextInputRelated to the TextInput component.Related to the TextInput component.Platform: AndroidAndroid applications.Android applications.Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.