Skip to content

TextInput with TextAlign on iOS does not add ellipsis instead wraps #29068

Open

Description

@msaqlain
import React, { PureComponent } from 'react';
import {Text, TextInput, View} from 'react-native';

const App = () => {
  return (
    <View style={{flex: 1, justifyContent: 'center'}}>
      <View>
        <Text>Text Input without alignment</Text>
        <TextInput style={{padding: 10, margin: 20, borderColor: 'grey', borderWidth: 1}}/>
        <Text>Text Input with right alignment</Text>
        <TextInput textAlign={'right'} style={{padding: 10, margin: 20, borderColor:  'grey', borderWidth: 1}}/>
      </View>
      <TextInput/>
    </View>);
};

export default App;

Write some long text into the first field with spaces.
image

Write similar text into the second field.
image

Unfocus second input
Expected: both fields will have ellipsis at the end
Actual: second input with textAlign doesn't have ellipsis.

Android app works in a different way:
It never shows ellipsis but if you type a long string it always shows the end of it and never beginning. I guess it should move to begin when unfocused.

react: 16.11.0 => 16.11.0
react-native: 0.62.1 => 0.62.1

Activity

  1. github-actions commented on Jun 5, 2020

    @github-actions
    ⚠️ Missing Environment Information
    ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.
  2. msaqlain commented on Jul 6, 2020

    @msaqlain
    Author

    Any Update? Its been 1 month now.

  3. msaqlain commented on Aug 24, 2020

    @msaqlain
    Author

    Comment. Just to keep this thread active.

  4. cameronbell commented on Sep 23, 2020

    @cameronbell

    I am also seeing this issue on "react-native": "0.61.5"

  5. xanderdeseyn commented on Nov 12, 2020

    @xanderdeseyn

    Same on 0.63.3

  6. JNUfeatherwit commented on Jun 8, 2021

    @JNUfeatherwit

    Any Solution?

  7. 24 remaining items

  8. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Feb 21, 2025
  9. SimpleCreations commented on Feb 22, 2025

    @SimpleCreations
    Contributor

    Can anyone confirm that this issue can be fixed by using the lineBreakModeIOS prop?

  10. removed
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Feb 23, 2025
  11. gulshercb7 commented on Apr 29, 2025

    @gulshercb7

    Can anyone confirm that this issue can be fixed by using the lineBreakModeIOS prop?

    I can confirm that using lineBreakModeIOS does not fix the issue.

  12. steinalex commented on May 14, 2025

    @steinalex
    Contributor

    Does anyone have a good solution to this (other than manually adding padding)? Still seeing this issue on "react-native": "0.76.7"

  13. Mehdi-Abbas commented on Jun 17, 2025

    @Mehdi-Abbas

    lineBreakModeIOS didn't work for me, but setting textAlign: 'auto' (in style) did the job

  14. DanielAraldi commented on Nov 6, 2025

    @DanielAraldi

    I have the same problem in RN 0.79.3...

  15. react-native-bot commented on May 6, 2026

    @react-native-bot
    Collaborator

    This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

  16. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on May 6, 2026
  17. tibbe commented on May 6, 2026

    @tibbe

    Still broken.

  18. removed
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on May 7, 2026
  19. react-native-bot commented on Nov 4, 2026

    @react-native-bot
    Collaborator

    This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

  20. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Nov 4, 2026
  21. SimpleCreations commented on Nov 4, 2026

    @SimpleCreations
    Contributor

    Can confirm the issue is still present in React Native 0.88.1 on iOS 26.5 and iOS 17.5. When textAlign is set to right, a long value is truncated without an ellipsis and is aligned to the left edge instead of the right.

  22. removed
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: TextInputRelated to the TextInput component.Needs: AttentionIssues where the author has responded to feedback.Needs: Environment InfoPlease run `react-native info` and edit your issue with that command's output.Platform: iOSiOS applications.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions