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] Migrate from ReactNativeInternalFeatureFlags to a module in the react-native package #30978

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

Conversation

rubennorte
Copy link
Contributor

Summary

The Meta builds for the React Native renderer reference a ReactNativeInternalFeatureFlags module that's expected to be defined in Haste when building the renderer together with RN at Meta. We're migrating away from this module and we've moved these definitions to the RN repository, so both definitions are OSS and we have more flexibility to define those flags at Meta (concretely, so we can use feature flags defined in react-native/src/private/featureflags/ReactNativeFeatureFlags without having circular dependencies).

How did you test this change?

Existing unit tests in React.
Will manually sync these changes to react-native to test the approach e2e.

Copy link

vercel bot commented Sep 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 17, 2024 10:43am

@react-sizebot
Copy link

Comparing: a99d8e8...6c87138

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.68 kB 6.68 kB +0.11% 1.82 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 509.31 kB 509.31 kB = 91.10 kB 91.10 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB +0.11% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 514.23 kB 514.24 kB = 91.81 kB 91.81 kB
facebook-www/ReactDOM-prod.classic.js = 604.86 kB 604.86 kB = 106.86 kB 106.86 kB
facebook-www/ReactDOM-prod.modern.js = 581.13 kB 581.13 kB = 103.01 kB 103.01 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against b15c4bc

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.

3 participants