Home / Function/ getRNFBFlagValue() — react Function Reference

getRNFBFlagValue() — react Function Reference

Architecture documentation for the getRNFBFlagValue() function in flags.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  e1c5f0b0_f4c6_7a0c_9d3f_2533231684ef["getRNFBFlagValue()"]
  9707085b_16d7_ffa5_8026_16a476a1a065["flags.js"]
  e1c5f0b0_f4c6_7a0c_9d3f_2533231684ef -->|defined in| 9707085b_16d7_ffa5_8026_16a476a1a065
  style e1c5f0b0_f4c6_7a0c_9d3f_2533231684ef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/flags/flags.js lines 330–352

function getRNFBFlagValue(flag) {
  const value = ReactFeatureFlagsNativeFB[flag];
  if (value === true) {
    return '✅';
  } else if (
    value === false ||
    value === null ||
    value === 'experimental' ||
    value === 'next'
  ) {
    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 FB value ${value} for flag ${flag}`);
  }
}

Domain

Subdomains

Frequently Asked Questions

What does getRNFBFlagValue() do?
getRNFBFlagValue() is a function in the react codebase, defined in scripts/flags/flags.js.
Where is getRNFBFlagValue() defined?
getRNFBFlagValue() is defined in scripts/flags/flags.js at line 330.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free