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: Optimize StyleSheet.compose #44274

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 26, 2024

  1. RN: Optimize StyleSheet.compose

    Summary:
    Changes two important aspects of `StyleSheet.compose`:
    
    - Extract it from `StyleSheet` so that it can be imported from other internal modules without incurring circular dependencies. (Surprisingly, `StyleSheet` has a lot of dependencies.)
    - Avoid a redundant `style1 != null` check.
    
    Changelog:
    [General][Changed] - Optimized performance of `StyleSheet.compose`
    
    Reviewed By: sammy-SC
    
    Differential Revision: D56621407
    yungsters authored and facebook-github-bot committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    9ae35b2 View commit details
    Browse the repository at this point in the history