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

Add enableNativeProcessing() flag for Fabric ViewConfig attributes #29039

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

NickGerleman
Copy link

@NickGerleman NickGerleman commented May 10, 2024

Summary

We want to move more of the style parsing boundary into the Fabric renderer, instead of the outputs of the JavaScript preprocessing functions used by Paper.

When using Fabric renderer specifically, we will now check for the presence of a useNativeProcessing function, which we can wire with arbitrary granularity inside of RN to allow incrementally removing viewconfig processors when using Fabric.

How did you test this change?

Just flow, and existing tests, for this part of the change. The intention is to wire this function to feature flags on the RN side of the boundary, for specific views/attributes.

@NickGerleman NickGerleman changed the title Add useNativeProcessing() flag for Fabric ViewConfigs Add useNativeProcessing flag for Fabric ViewConfigs May 10, 2024
@react-sizebot
Copy link

react-sizebot commented May 10, 2024

Comparing: 6ef0dd4...1e055d0

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.66 kB 6.66 kB +0.05% 1.82 kB 1.82 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 495.02 kB 495.02 kB = 88.68 kB 88.68 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.67 kB 6.67 kB +0.05% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 499.81 kB 499.81 kB = 89.36 kB 89.36 kB
facebook-www/ReactDOM-prod.classic.js = 592.16 kB 592.16 kB = 104.15 kB 104.15 kB
facebook-www/ReactDOM-prod.modern.js = 568.39 kB 568.39 kB = 100.55 kB 100.55 kB
test_utils/ReactAllWarnings.js Deleted 64.26 kB 0.00 kB Deleted 16.02 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
react-native/shims/ReactNativeTypes.js +0.53% 8.74 kB 8.78 kB +0.29% 2.38 kB 2.39 kB
test_utils/ReactAllWarnings.js Deleted 64.26 kB 0.00 kB Deleted 16.02 kB 0.00 kB

Generated by 🚫 dangerJS against 1e055d0

We want to move more of the style parsing boundary into the Fabric renderer, instead of the outputs of the JavaScript preprocessing functions used by Paper.

When using Fabric renderer, we will now check for the presence of a `useNativeProcessing` function, which we can wire with arbitrary granularity inside of RN to allow incrementally removing viewconfig processors when using Fabric.
@NickGerleman NickGerleman changed the title Add useNativeProcessing flag for Fabric ViewConfigs Add useNativeProcessing flag for Fabric ViewConfig attributes May 10, 2024
@NickGerleman NickGerleman changed the title Add useNativeProcessing flag for Fabric ViewConfig attributes Add enableNativeProcessing() flag for Fabric ViewConfig attributes May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants