Home / Function/ pipelineUsesReanimatedPlugin() — react Function Reference

pipelineUsesReanimatedPlugin() — react Function Reference

Architecture documentation for the pipelineUsesReanimatedPlugin() function in Reanimated.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  842dd25b_450e_d53a_86da_7c3b96f1f5f7["pipelineUsesReanimatedPlugin()"]
  4b6a2a26_9073_8d0b_6c3b_1cbce53fd41c["Reanimated.ts"]
  842dd25b_450e_d53a_86da_7c3b96f1f5f7 -->|defined in| 4b6a2a26_9073_8d0b_6c3b_1cbce53fd41c
  8b3d020f_cfed_25b4_5f08_f8818958ca03["BabelPluginReactCompiler()"]
  8b3d020f_cfed_25b4_5f08_f8818958ca03 -->|calls| 842dd25b_450e_d53a_86da_7c3b96f1f5f7
  27d56ae1_023e_57f5_a306_f4be92e0daca["hasOwnProperty()"]
  842dd25b_450e_d53a_86da_7c3b96f1f5f7 -->|calls| 27d56ae1_023e_57f5_a306_f4be92e0daca
  90ce5ec2_2979_868a_9649_710adfb19ca1["hasModule()"]
  842dd25b_450e_d53a_86da_7c3b96f1f5f7 -->|calls| 90ce5ec2_2979_868a_9649_710adfb19ca1
  style 842dd25b_450e_d53a_86da_7c3b96f1f5f7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Reanimated.ts lines 36–53

export function pipelineUsesReanimatedPlugin(
  plugins: Array<BabelCore.PluginItem> | null | undefined,
): boolean {
  if (Array.isArray(plugins)) {
    for (const plugin of plugins) {
      if (hasOwnProperty(plugin, 'key')) {
        const key = (plugin as any).key; // already checked
        if (
          typeof key === 'string' &&
          key.indexOf('react-native-reanimated') !== -1
        ) {
          return true;
        }
      }
    }
  }
  return hasModule('react-native-reanimated');
}

Domain

Subdomains

Frequently Asked Questions

What does pipelineUsesReanimatedPlugin() do?
pipelineUsesReanimatedPlugin() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Reanimated.ts.
Where is pipelineUsesReanimatedPlugin() defined?
pipelineUsesReanimatedPlugin() is defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Reanimated.ts at line 36.
What does pipelineUsesReanimatedPlugin() call?
pipelineUsesReanimatedPlugin() calls 2 function(s): hasModule, hasOwnProperty.
What calls pipelineUsesReanimatedPlugin()?
pipelineUsesReanimatedPlugin() is called by 1 function(s): BabelPluginReactCompiler.

Analyze Your Own Codebase

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

Try Supermodel Free