Home / Function/ addNestedProperty() — react Function Reference

addNestedProperty() — react Function Reference

Architecture documentation for the addNestedProperty() function in ReactNativeAttributePayload.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  ab76d65e_1e09_de43_e1a5_8d77eb820c12["addNestedProperty()"]
  3429d3f6_3e01_954f_bb31_157d6bedf858["ReactNativeAttributePayload.js"]
  ab76d65e_1e09_de43_e1a5_8d77eb820c12 -->|defined in| 3429d3f6_3e01_954f_bb31_157d6bedf858
  3cf42fd4_840c_03f5_8b79_ff054da06df0["addProperties()"]
  ab76d65e_1e09_de43_e1a5_8d77eb820c12 -->|calls| 3cf42fd4_840c_03f5_8b79_ff054da06df0
  style ab76d65e_1e09_de43_e1a5_8d77eb820c12 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-native-renderer/src/ReactNativeAttributePayload.js lines 208–232

function addNestedProperty(
  updatePayload: null | Object,
  nextProp: NestedNode,
  validAttributes: AttributeConfiguration,
): $FlowFixMe {
  if (!nextProp) {
    return updatePayload;
  }

  if (!isArray(nextProp)) {
    // Add each property of the leaf.
    return addProperties(updatePayload, nextProp, validAttributes);
  }

  for (let i = 0; i < nextProp.length; i++) {
    // Add all the properties of the array.
    updatePayload = addNestedProperty(
      updatePayload,
      nextProp[i],
      validAttributes,
    );
  }

  return updatePayload;
}

Domain

Subdomains

Frequently Asked Questions

What does addNestedProperty() do?
addNestedProperty() is a function in the react codebase, defined in packages/react-native-renderer/src/ReactNativeAttributePayload.js.
Where is addNestedProperty() defined?
addNestedProperty() is defined in packages/react-native-renderer/src/ReactNativeAttributePayload.js at line 208.
What does addNestedProperty() call?
addNestedProperty() calls 1 function(s): addProperties.

Analyze Your Own Codebase

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

Try Supermodel Free