Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimize EditText Spans 6/N: letterSpacing #36548

Closed
wants to merge 2 commits into from

Commits on Mar 24, 2023

  1. Minimize EditText Spans 5/N: Strikethrough and Underline

    Summary:
    This is part of a series of changes to minimize the number of spans committed to EditText, as a mitigation for platform issues on Samsung devices. See this [GitHub thread]( facebook#35936 (comment)) for greater context on the platform behavior.
    
    This change makes us apply strikethrough and underline as paint flags to the underlying EditText, instead of just the spans. We then opt ReactUnderlineSpan and ReactStrikethroughSpan into being strippable.
    
    This does actually create visual behavior changes, where child text will inherit any underline or strikethrough of the root EditText (including if the child specifies `textDecorationLine: "none"`. The new behavior is consistent with both iOS and web though, so it seems like more of a bugfix than a regression.
    
    Changelog:
    [Android][Fixed] - Minimize Spans 5/N: Strikethrough and Underline
    
    Differential Revision: https://www.internalfb.com/diff/D44240778?entry_point=27
    
    fbshipit-source-id: e07bd44caa4e3858ea8780f6df1d4f16361cab43
    NickGerleman authored and facebook-github-bot committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    46b3039 View commit details
    Browse the repository at this point in the history
  2. Minimize EditText Spans 6/9: letterSpacing (facebook#36548)

    Summary:
    Pull Request resolved: facebook#36548
    
    This is part of a series of changes to minimize the number of spans committed to EditText, as a mitigation for platform issues on Samsung devices. See this [GitHub thread]( facebook#35936 (comment)) for greater context on the platform behavior.
    
    This change lets us set `letterSpacing` on the EditText instead of using our custom span.
    
    Changelog:
    [Android][Fixed] - Minimize EditText Spans 6/N: letterSpacing
    
    Reviewed By: rshest
    
    Differential Revision: D44240777
    
    fbshipit-source-id: 5105413d766c512b0c8c4e79579241fa63fc6aeb
    NickGerleman authored and facebook-github-bot committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    7e4d423 View commit details
    Browse the repository at this point in the history