getRNNextMajorFlagValue() — react Function Reference
Architecture documentation for the getRNNextMajorFlagValue() function in flags.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD c704007c_64a2_1973_a501_748eaa76fa6e["getRNNextMajorFlagValue()"] 9707085b_16d7_ffa5_8026_16a476a1a065["flags.js"] c704007c_64a2_1973_a501_748eaa76fa6e -->|defined in| 9707085b_16d7_ffa5_8026_16a476a1a065 style c704007c_64a2_1973_a501_748eaa76fa6e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/flags/flags.js lines 284–303
function getRNNextMajorFlagValue(flag) {
const value = ReactNativeFeatureFlagsMajor[flag];
if (value === true || value === 'next') {
return '✅';
} else if (value === 'next-todo') {
return '📋';
} else if (value === false || value === null || value === 'experimental') {
return '❌';
} else if (value === 'profile') {
return '📊';
} else if (value === 'dev') {
return '💻';
} else if (value === 'gk') {
return '🧪';
} else if (typeof value === 'number') {
return value;
} else {
throw new Error(`Unexpected RN OSS value ${value} for flag ${flag}`);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getRNNextMajorFlagValue() do?
getRNNextMajorFlagValue() is a function in the react codebase, defined in scripts/flags/flags.js.
Where is getRNNextMajorFlagValue() defined?
getRNNextMajorFlagValue() is defined in scripts/flags/flags.js at line 284.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free