# tudorvalentine/blur-view architecture

> Architecture diagram of the GitHub repository tudorvalentine/blur-view, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tudorvalentine/blur-view
- Repository: https://github.com/tudorvalentine/blur-view

## Overview

This is a React Native blur-view library, with the fork’s documented product focused on iOS gradient blur. The user supplies direction, maximum radius, and start offset to `VariableBlurView`; React Native exposes a native view, whose iOS manager configures the SwiftUI/UIKit blur implementation and its gradient mask. The Android manager and package remain in the tree, but the README explicitly says Android is unsupported in this fork. Edges to native registration are dashed because the sampled files do not show the linking mechanism directly.

Main entry points: [`src/index.tsx`](https://github.com/tudorvalentine/blur-view/blob/main/src/index.tsx) (VariableBlurView API), [`ios/BlurViewViewManager.swift`](https://github.com/tudorvalentine/blur-view/blob/main/ios/BlurViewViewManager.swift) (Native view manager), [`ios/VariableFilterBlurView.swift`](https://github.com/tudorvalentine/blur-view/blob/main/ios/VariableFilterBlurView.swift) (Variable blur view), [`android/src/main/java/com/candlefinance/blurview/VariableBlurViewPackage.kt`](https://github.com/tudorvalentine/blur-view/blob/main/android/src/main/java/com/candlefinance/blurview/VariableBlurViewPackage.kt) (Android view package)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_js["React Native API"]
  node_api["VariableBlurView API<br/>[index.tsx]"]
end

subgraph group_ios["iOS Gradient Blur"]
  node_manager["Native view manager"]
  node_blurview["Variable blur view"]
  node_gradient["Gradient mask"]
end

subgraph group_android["Android Legacy"]
  node_androidpackage["Android view package"]
  node_androidmanager["Android blur manager"]
end

node_developer(("App developer"))

node_developer -->|"configures"| node_api
node_api -.->|"selects native view"| node_manager
node_manager -->|"creates and updates"| node_blurview
node_blurview -->|"builds mask"| node_gradient
node_androidpackage -->|"registers"| node_androidmanager

click node_api "https://github.com/tudorvalentine/blur-view/blob/main/src/index.tsx"
click node_manager "https://github.com/tudorvalentine/blur-view/blob/main/ios/BlurViewViewManager.swift"
click node_blurview "https://github.com/tudorvalentine/blur-view/blob/main/ios/VariableFilterBlurView.swift"
click node_gradient "https://github.com/tudorvalentine/blur-view/blob/main/ios/VariableFilterBlurView.swift"
click node_androidpackage "https://github.com/tudorvalentine/blur-view/blob/main/android/src/main/java/com/candlefinance/blurview/VariableBlurViewPackage.kt"
click node_androidmanager "https://github.com/tudorvalentine/blur-view/blob/main/android/src/main/java/com/candlefinance/blurview/BlurViewViewManager.kt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_api toneBlue
class node_manager,node_blurview,node_gradient toneAmber
class node_androidpackage,node_androidmanager toneMint
class node_developer toneIndigo
```

## Components

### React Native API

- [VariableBlurView API](https://github.com/tudorvalentine/blur-view/blob/main/src/index.tsx): `src/index.tsx`

### iOS Gradient Blur

- [Native view manager](https://github.com/tudorvalentine/blur-view/blob/main/ios/BlurViewViewManager.swift): `ios/BlurViewViewManager.swift`
- [Variable blur view](https://github.com/tudorvalentine/blur-view/blob/main/ios/VariableFilterBlurView.swift): `ios/VariableFilterBlurView.swift`
- [Gradient mask](https://github.com/tudorvalentine/blur-view/blob/main/ios/VariableFilterBlurView.swift): `ios/VariableFilterBlurView.swift`

### Android Legacy

- [Android view package](https://github.com/tudorvalentine/blur-view/blob/main/android/src/main/java/com/candlefinance/blurview/VariableBlurViewPackage.kt): `android/src/main/java/com/candlefinance/blurview/VariableBlurViewPackage.kt`
- [Android blur manager](https://github.com/tudorvalentine/blur-view/blob/main/android/src/main/java/com/candlefinance/blurview/BlurViewViewManager.kt): `android/src/main/java/com/candlefinance/blurview/BlurViewViewManager.kt`

### Other components

- **App developer**

## Connections

- App developer → VariableBlurView API: configures (evidence: `README.md`)
- VariableBlurView API → Native view manager: selects native view
- Native view manager → Variable blur view: creates and updates (evidence: `ios/BlurViewViewManager.swift`)
- Variable blur view → Gradient mask: builds mask (evidence: `ios/VariableFilterBlurView.swift`)
- Android view package → Android blur manager: registers (evidence: `android/src/main/java/com/candlefinance/blurview/VariableBlurViewPackage.kt`)
