react-native-blur-vibe 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/com/blurvibe/BlurVibeView.kt +101 -192
  3. package/android/src/main/java/com/blurvibe/BlurVibeViewApi31.kt +261 -241
  4. package/android/src/main/java/com/blurvibe/BlurVibeViewManager.kt +77 -28
  5. package/android/src/main/java/com/blurvibe/LegacyBlurController.kt +258 -0
  6. package/ios/BlurVibeView.swift +2 -0
  7. package/ios/BlurVibeViewFabric.mm +112 -0
  8. package/ios/BlurVibeViewManager.m +12 -2
  9. package/ios/BlurVibeViewManager.swift +9 -9
  10. package/lib/commonjs/BlurVibeViewNativeComponent.ts +14 -25
  11. package/lib/commonjs/BlurView.js +9 -30
  12. package/lib/commonjs/BlurView.js.map +1 -1
  13. package/lib/module/BlurVibeViewNativeComponent.ts +14 -25
  14. package/lib/module/BlurView.js +9 -30
  15. package/lib/module/BlurView.js.map +1 -1
  16. package/lib/typescript/commonjs/src/BlurVibeViewNativeComponent.d.ts +11 -9
  17. package/lib/typescript/commonjs/src/BlurVibeViewNativeComponent.d.ts.map +1 -1
  18. package/lib/typescript/commonjs/src/BlurView.d.ts +6 -31
  19. package/lib/typescript/commonjs/src/BlurView.d.ts.map +1 -1
  20. package/lib/typescript/commonjs/src/types.d.ts +26 -1
  21. package/lib/typescript/commonjs/src/types.d.ts.map +1 -1
  22. package/lib/typescript/module/src/BlurVibeViewNativeComponent.d.ts +11 -9
  23. package/lib/typescript/module/src/BlurVibeViewNativeComponent.d.ts.map +1 -1
  24. package/lib/typescript/module/src/BlurView.d.ts +6 -31
  25. package/lib/typescript/module/src/BlurView.d.ts.map +1 -1
  26. package/lib/typescript/module/src/types.d.ts +26 -1
  27. package/lib/typescript/module/src/types.d.ts.map +1 -1
  28. package/package.json +11 -2
  29. package/src/BlurVibeViewNativeComponent.ts +14 -25
  30. package/src/BlurView.tsx +10 -33
  31. package/src/types.ts +30 -1
package/src/types.ts CHANGED
@@ -88,7 +88,7 @@ export type BlurType =
88
88
  * | `"leftToRight"` | Left edge | Right edge |
89
89
  * | `"rightToLeft"` | Right edge | Left edge |
90
90
  * | `"radial"` | Center | Outer edges |
91
- * | `"none"` | — uniform blur — no gradient |
91
+ * | `"none"` | — uniform blur — no gradient |
92
92
  *
93
93
  * @example
94
94
  * // Sticky header: full blur at top, invisible at bottom
@@ -311,4 +311,33 @@ export interface BlurViewProps extends ViewProps {
311
311
  * @platform ios, android (API 31+)
312
312
  */
313
313
  noiseFactor?: number;
314
+
315
+ // ─── Blur control ──────────────────────────────────────────────────────────
316
+
317
+ /**
318
+ * Enable or disable the blur effect.
319
+ *
320
+ * When `false`, the view renders as transparent (showing
321
+ * `reducedTransparencyFallbackColor` if set). Useful for toggling blur
322
+ * based on scroll position, performance mode, or user preference.
323
+ *
324
+ * **Works on both iOS and Android.**
325
+ *
326
+ * @default true
327
+ */
328
+ enabled?: boolean;
329
+
330
+ /**
331
+ * Automatically re-capture and re-blur when the content behind changes.
332
+ *
333
+ * When `false`, the blur is captured once at mount and never updated.
334
+ * Use this for completely static backgrounds (e.g. a blurred album art
335
+ * card where the image never changes) — eliminates all per-frame cost
336
+ * on Android API < 31.
337
+ *
338
+ * **Works on both iOS and Android.**
339
+ *
340
+ * @default true
341
+ */
342
+ autoUpdate?: boolean;
314
343
  }