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 7/9: Avoid temp list #36576

Closed
wants to merge 3 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: 6a2b9714425e1d3738ded5bbe66bab7500e7bc99
    NickGerleman authored and facebook-github-bot committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    b65ba60 View commit details
    Browse the repository at this point in the history
  2. Minimize EditText Spans 6/N: letterSpacing

    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 lets us set `letterSpacing` on the EditText instead of using our custom span.
    
    Changelog:
    [Android][Fixed] - Minimize EditText Spans 6/N: letterSpacing
    
    Differential Revision: https://internalfb.com/D44240777
    
    fbshipit-source-id: 53ecfa3f46df695ad8917099528d61efbafccf5a
    NickGerleman authored and facebook-github-bot committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    9d1667d View commit details
    Browse the repository at this point in the history
  3. Minimize EditText Spans 7/9: Avoid temp list (facebook#36576)

    Summary:
    Pull Request resolved: facebook#36576
    
    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 addresses some minor CR feedback and removes the temporary list of spans in favor of applying them directly.
    
    Changelog:
    [Internal]
    
    Reviewed By: javache
    
    Differential Revision: D44295190
    
    fbshipit-source-id: 058e753fbf7ea782062c2516e3227d392c28a0d7
    NickGerleman authored and facebook-github-bot committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    a2841ac View commit details
    Browse the repository at this point in the history