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

RN tester example for filters #44459

Closed
wants to merge 7 commits into from

Commits on May 7, 2024

  1. Plumbing to set filters on Android views

    Summary:
    This works similar to how `transform` is parsed in that it sets tags on the View to actually update the prop when all the prop setters are done being called since the parsing of the array is not very trivial. Besides that it is pretty simple and just calls into `FilterHelper` and uses `setRenderEffect`: https://developer.android.com/reference/android/view/View#setRenderEffect(android.graphics.RenderEffect).
    
    That API is only exposed in version 31 of the SDK so it is gated accordingly.
    
    Differential Revision: D54640600
    joevilches authored and facebook-github-bot committed May 7, 2024
    Configuration menu
    Copy the full SHA
    9695864 View commit details
    Browse the repository at this point in the history
  2. Opacity filter on Android

    Differential Revision: D56847475
    joevilches authored and facebook-github-bot committed May 7, 2024
    Configuration menu
    Copy the full SHA
    a0c91b9 View commit details
    Browse the repository at this point in the history
  3. Parse raw filter props

    Differential Revision: D54640629
    joevilches authored and facebook-github-bot committed May 7, 2024
    Configuration menu
    Copy the full SHA
    ea03f55 View commit details
    Browse the repository at this point in the history
  4. Make it so that a view with a filter forms a stacking context

    Differential Revision: D55044674
    joevilches authored and facebook-github-bot committed May 7, 2024
    Configuration menu
    Copy the full SHA
    bf2fd79 View commit details
    Browse the repository at this point in the history
  5. Implement brightness and opacity using blend modes

    Differential Revision: D56447175
    joevilches authored and facebook-github-bot committed May 7, 2024
    Configuration menu
    Copy the full SHA
    f2e42ee View commit details
    Browse the repository at this point in the history
  6. JS plumbing to get filters into native

    Differential Revision: D56845572
    joevilches authored and facebook-github-bot committed May 7, 2024
    Configuration menu
    Copy the full SHA
    6e6e3ea View commit details
    Browse the repository at this point in the history
  7. RN tester example for filters

    Summary:
    tsia
    
    Changelog: [Internal]
    
    Reviewed By: NickGerleman
    
    Differential Revision: D56857709
    joevilches authored and facebook-github-bot committed May 7, 2024
    Configuration menu
    Copy the full SHA
    8d1a941 View commit details
    Browse the repository at this point in the history