Skip to content

Better NEXT_MAJOR support for RN flags#28583

Merged
rickhanlonii merged 3 commits intofacebook:mainfrom
rickhanlonii:rh/rn-next-major
Mar 22, 2024
Merged

Better NEXT_MAJOR support for RN flags#28583
rickhanlonii merged 3 commits intofacebook:mainfrom
rickhanlonii:rh/rn-next-major

Conversation

@rickhanlonii
Copy link
Copy Markdown
Member

The __NEXT_MAJOR__ value in the RN flags doesn't make sense because:

a) The flags are for the next RN major, since it only impacts the renderers
b) The flags are off, so they're not currently in the next major, they need enabled
c) the flag script didn't support it

This PR adds two aliases to the RN file:

  • __TODO_NEXT_RN_MAJOR__: flags that need enabled before the next RN major.
  • __NEXT_RN_MAJOR__: flags that have been enabled since the last RN major.

These values will need to be manually kept up to date when we cut a RN version, but once RN switches to the canary build and aligns all the flags, this entire file can be deleted.

Script screen

Notably, I added a TODO value and a legend that prints at the end of the script:

Screenshot 2024-03-18 at 8 11 27 PM

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants