@sbaiahmed1/react-native-blur 4.6.1 → 4.6.2
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.
- package/README.md +16 -11
- package/android/src/main/java/com/sbaiahmed1/reactnativeblur/BlurType.kt +24 -22
- package/android/src/main/java/com/sbaiahmed1/reactnativeblur/ReactNativeBlurSwitch.kt +19 -1
- package/android/src/main/java/com/sbaiahmed1/reactnativeblur/ReactNativeBlurSwitchManager.kt +5 -0
- package/android/src/main/java/com/sbaiahmed1/reactnativeblur/ReactNativeBlurView.kt +63 -10
- package/android/src/main/java/com/sbaiahmed1/reactnativeblur/ReactNativeBlurViewManager.kt +5 -0
- package/android/src/main/java/com/sbaiahmed1/reactnativeblur/ReactNativeProgressiveBlurView.kt +60 -10
- package/android/src/main/java/com/sbaiahmed1/reactnativeblur/ReactNativeProgressiveBlurViewManager.kt +5 -0
- package/ios/Views/BlurEffectView.swift +32 -19
- package/lib/module/BlurSwitch.js +11 -6
- package/lib/module/BlurSwitch.js.map +1 -1
- package/lib/module/BlurView.js +2 -0
- package/lib/module/BlurView.js.map +1 -1
- package/lib/module/LiquidGlassContainer.js.map +1 -1
- package/lib/module/LiquidGlassView.js.map +1 -1
- package/lib/module/ProgressiveBlurView.js +3 -0
- package/lib/module/ProgressiveBlurView.js.map +1 -1
- package/lib/module/ReactNativeBlurSwitchNativeComponent.ts +2 -37
- package/lib/module/ReactNativeBlurViewNativeComponent.ts +2 -0
- package/lib/module/ReactNativeLiquidGlassContainerNativeComponent.ts +0 -5
- package/lib/module/ReactNativeLiquidGlassViewNativeComponent.ts +0 -35
- package/lib/module/ReactNativeProgressiveBlurViewNativeComponent.ts +2 -0
- package/lib/typescript/src/BlurSwitch.d.ts +10 -0
- package/lib/typescript/src/BlurSwitch.d.ts.map +1 -1
- package/lib/typescript/src/BlurView.d.ts +11 -2
- package/lib/typescript/src/BlurView.d.ts.map +1 -1
- package/lib/typescript/src/LiquidGlassContainer.d.ts +3 -2
- package/lib/typescript/src/LiquidGlassContainer.d.ts.map +1 -1
- package/lib/typescript/src/LiquidGlassView.d.ts +25 -15
- package/lib/typescript/src/LiquidGlassView.d.ts.map +1 -1
- package/lib/typescript/src/ProgressiveBlurView.d.ts +11 -2
- package/lib/typescript/src/ProgressiveBlurView.d.ts.map +1 -1
- package/lib/typescript/src/ReactNativeBlurSwitchNativeComponent.d.ts +2 -32
- package/lib/typescript/src/ReactNativeBlurSwitchNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/ReactNativeBlurViewNativeComponent.d.ts +2 -1
- package/lib/typescript/src/ReactNativeBlurViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/ReactNativeLiquidGlassContainerNativeComponent.d.ts +0 -5
- package/lib/typescript/src/ReactNativeLiquidGlassContainerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/ReactNativeLiquidGlassViewNativeComponent.d.ts +0 -30
- package/lib/typescript/src/ReactNativeLiquidGlassViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/ReactNativeProgressiveBlurViewNativeComponent.d.ts +2 -1
- package/lib/typescript/src/ReactNativeProgressiveBlurViewNativeComponent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/BlurSwitch.tsx +23 -3
- package/src/BlurView.tsx +14 -2
- package/src/LiquidGlassContainer.tsx +3 -2
- package/src/LiquidGlassView.tsx +25 -15
- package/src/ProgressiveBlurView.tsx +15 -2
- package/src/ReactNativeBlurSwitchNativeComponent.ts +2 -37
- package/src/ReactNativeBlurViewNativeComponent.ts +2 -0
- package/src/ReactNativeLiquidGlassContainerNativeComponent.ts +0 -5
- package/src/ReactNativeLiquidGlassViewNativeComponent.ts +0 -35
- package/src/ReactNativeProgressiveBlurViewNativeComponent.ts +2 -0
package/lib/module/BlurView.js
CHANGED
|
@@ -29,6 +29,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
29
29
|
export const BlurView = ({
|
|
30
30
|
blurType = 'xlight',
|
|
31
31
|
blurAmount = 10,
|
|
32
|
+
blurRounds = 5,
|
|
32
33
|
reducedTransparencyFallbackColor = '#FFFFFF',
|
|
33
34
|
overlayColor,
|
|
34
35
|
style,
|
|
@@ -42,6 +43,7 @@ export const BlurView = ({
|
|
|
42
43
|
const commonProps = {
|
|
43
44
|
blurType,
|
|
44
45
|
blurAmount,
|
|
46
|
+
blurRounds,
|
|
45
47
|
ignoreSafeArea,
|
|
46
48
|
reducedTransparencyFallbackColor
|
|
47
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Children","Platform","StyleSheet","View","ReactNativeBlurView","jsx","_jsx","jsxs","_jsxs","BlurView","blurType","blurAmount","reducedTransparencyFallbackColor","overlayColor","style","children","ignoreSafeArea","props","overlay","backgroundColor","commonProps","count","OS","absoluteFill","styles","container","create","position","overflow"],"sourceRoot":"../../src","sources":["BlurView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAEzD,OAAOC,mBAAmB,MAEnB,sCAAsC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["React","Children","Platform","StyleSheet","View","ReactNativeBlurView","jsx","_jsx","jsxs","_jsxs","BlurView","blurType","blurAmount","blurRounds","reducedTransparencyFallbackColor","overlayColor","style","children","ignoreSafeArea","props","overlay","backgroundColor","commonProps","count","OS","absoluteFill","styles","container","create","position","overflow"],"sourceRoot":"../../src","sources":["BlurView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAEzD,OAAOC,mBAAmB,MAEnB,sCAAsC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAA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AW;MAAA,GACXH;IAAK,CACV,CAAC,EACDF,QAAQ;EAAA,CACL,CAAC;AAEX,CAAC;AAED,eAAeP,QAAQ;AAEvB,MAAMgB,MAAM,GAAGvB,UAAU,CAACyB,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,QAAQ,EAAE,UAAU;IACpBC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","View","ReactNativeLiquidGlassContainer","jsx","_jsx","LiquidGlassContainer","spacing","style","children","rest","isCompatibleIOS","OS","parseInt","Version"],"sourceRoot":"../../src","sources":["LiquidGlassContainer.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,IAAI,QAAwB,cAAc;AAC7D,OAAOC,+BAA+B,MAAM,kDAAkD;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["React","Platform","View","ReactNativeLiquidGlassContainer","jsx","_jsx","LiquidGlassContainer","spacing","style","children","rest","isCompatibleIOS","OS","parseInt","Version"],"sourceRoot":"../../src","sources":["LiquidGlassContainer.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,IAAI,QAAwB,cAAc;AAC7D,OAAOC,+BAA+B,MAAM,kDAAkD;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAa/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,oBAAyD,GAAGA,CAAC;EACxEC,OAAO,GAAG,CAAC;EACXC,KAAK;EACLC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,eAAe,GACnBV,QAAQ,CAACW,EAAE,KAAK,KAAK,IAAIC,QAAQ,CAACZ,QAAQ,CAACa,OAAO,EAAY,EAAE,CAAC,IAAI,EAAE;EAEzE,IAAI,CAACH,eAAe,EAAE;IACpB;IACA,oBACEN,IAAA,CAACH,IAAI;MAACM,KAAK,EAAEA,KAAM;MAAA,GAAKE,IAAI;MAAAD,QAAA,EACzBA;IAAQ,CACL,CAAC;EAEX;EAEA,oBACEJ,IAAA,CAACF,+BAA+B;IAACI,OAAO,EAAEA,OAAQ;IAACC,KAAK,EAAEA,KAAM;IAAA,GAAKE,IAAI;IAAAD,QAAA,EACtEA;EAAQ,CACsB,CAAC;AAEtC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","ReactNativeLiquidGlassView","BlurView","jsx","_jsx","LiquidGlassView","glassType","glassTintColor","glassOpacity","reducedTransparencyFallbackColor","isInteractive","ignoreSafeArea","style","children","props","isIos","OS","Number","parseInt","String","Version","console","warn","overlayColorWithAlpha","Math","floor","toString","padStart","blurAmount","overlayColor"],"sourceRoot":"../../src","sources":["LiquidGlassView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAOC,0BAA0B,MAE1B,6CAA6C;AACpD,OAAOC,QAAQ,MAAM,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["React","Platform","ReactNativeLiquidGlassView","BlurView","jsx","_jsx","LiquidGlassView","glassType","glassTintColor","glassOpacity","reducedTransparencyFallbackColor","isInteractive","ignoreSafeArea","style","children","props","isIos","OS","Number","parseInt","String","Version","console","warn","overlayColorWithAlpha","Math","floor","toString","padStart","blurAmount","overlayColor"],"sourceRoot":"../../src","sources":["LiquidGlassView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAOC,0BAA0B,MAE1B,6CAA6C;AACpD,OAAOC,QAAQ,MAAM,eAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA0ElC;AACA;AACA;A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EA,cAAe;IAC/BC,KAAK,EAAEA,KAAM;IAAA,GACTE,KAAK;IAAAD,QAAA,EAERA;EAAQ,CACiB,CAAC;AAEjC,CAAC;AAED,eAAeR,eAAe","ignoreList":[]}
|
|
@@ -47,6 +47,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
47
47
|
export const ProgressiveBlurView = ({
|
|
48
48
|
blurType = 'regular',
|
|
49
49
|
blurAmount = 20,
|
|
50
|
+
blurRounds = 5,
|
|
50
51
|
direction = 'blurredTopClearBottom',
|
|
51
52
|
startOffset = 0.0,
|
|
52
53
|
reducedTransparencyFallbackColor = '#FFFFFF',
|
|
@@ -64,6 +65,7 @@ export const ProgressiveBlurView = ({
|
|
|
64
65
|
return /*#__PURE__*/_jsx(ReactNativeProgressiveBlurView, {
|
|
65
66
|
blurType: blurType,
|
|
66
67
|
blurAmount: blurAmount,
|
|
68
|
+
blurRounds: blurRounds,
|
|
67
69
|
direction: direction,
|
|
68
70
|
startOffset: startOffset,
|
|
69
71
|
reducedTransparencyFallbackColor: reducedTransparencyFallbackColor,
|
|
@@ -78,6 +80,7 @@ export const ProgressiveBlurView = ({
|
|
|
78
80
|
children: [/*#__PURE__*/_jsx(ReactNativeProgressiveBlurView, {
|
|
79
81
|
blurType: blurType,
|
|
80
82
|
blurAmount: blurAmount,
|
|
83
|
+
blurRounds: blurRounds,
|
|
81
84
|
direction: direction,
|
|
82
85
|
startOffset: startOffset,
|
|
83
86
|
reducedTransparencyFallbackColor: reducedTransparencyFallbackColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Children","StyleSheet","View","ReactNativeProgressiveBlurView","jsx","_jsx","jsxs","_jsxs","ProgressiveBlurView","blurType","blurAmount","direction","startOffset","reducedTransparencyFallbackColor","overlayColor","style","children","props","overlay","backgroundColor","count","styles","container","absoluteFill","create","position","overflow"],"sourceRoot":"../../src","sources":["ProgressiveBlurView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,OAAOC,8BAA8B,MAG9B,iDAAiD;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["React","Children","StyleSheet","View","ReactNativeProgressiveBlurView","jsx","_jsx","jsxs","_jsxs","ProgressiveBlurView","blurType","blurAmount","blurRounds","direction","startOffset","reducedTransparencyFallbackColor","overlayColor","style","children","props","overlay","backgroundColor","count","styles","container","absoluteFill","create","position","overflow"],"sourceRoot":"../../src","sources":["ProgressiveBlurView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,OAAOC,8BAA8B,MAG9B,iDAAiD;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA8EzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAuD,GAAGA,CAAC;EACtEC,QAAQ,GAAG,SAAS;EACpBC,UAAU,GAAG,EAAE;EACfC,UAAU,GAAG,CAAC;EACdC,SAAS,GAAG,uBAAuB;EACnCC,WAAW,GAAG,GAAG;EACjBC,gCAAgC,GAAG,SAAS;EAC5CC,YAAY;EACZC,KAAK;EACLC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,OAAO,GAAG;IAAEC,eAAe,EAAEL;EAAa,CAAC;;EAEjD;EACA,IAAI,CAACf,QAAQ,CAACqB,KAAK,CAACJ,QAAQ,CAAC,EAAE;IAC7B,oBACEZ,IAAA,CAACF,8BAA8B;MAC7BM,QAAQ,EAAEA,QAAS;MACnBC,UAAU,EAAEA,UAAW;MACvBC,UAAU,EAAEA,UAAW;MACvBC,SAAS,EAAEA,SAAU;MACrBC,WAAW,EAAEA,WAAY;MACzBC,gCAAgC,EAAEA,gCAAiC;MACnEE,KAAK,EAAE,CAACA,KAAK,EAAEG,OAAO,CAAE;MAAA,GACpBD;IAAK,CACV,CAAC;EAEN;;EAEA;EACA,oBACEX,KAAA,CAACL,IAAI;IAACc,KAAK,EAAE,CAACM,MAAM,CAACC,SAAS,EAAEP,KAAK,EAAEG,OAAO,CAAE;IAAAF,QAAA,gBAE9CZ,IAAA,CAACF,8BAA8B;MAC7BM,QAAQ,EAAEA,QAAS;MACnBC,UAAU,EAAEA,UAAW;MACvBC,UAAU,EAAEA,UAAW;MACvBC,SAAS,EAAEA,SAAU;MACrBC,WAAW,EAAEA,WAAY;MACzBC,gCAAgC,EAAEA,gCAAiC;MACnEE,KAAK,EAAEf,UAAU,CAACuB,YAAa;MAAA,GAC3BN;IAAK,CACV,CAAC,EAEDD,QAAQ;EAAA,CACL,CAAC;AAEX,CAAC;AAED,eAAeT,mBAAmB;AAElC,MAAMc,MAAM,GAAGrB,UAAU,CAACwB,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,QAAQ,EAAE,UAAU;IACpBC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
WithDefault,
|
|
5
5
|
Double,
|
|
6
6
|
DirectEventHandler,
|
|
7
|
+
Int32,
|
|
7
8
|
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
9
|
|
|
9
10
|
export interface ValueChangeEvent {
|
|
@@ -11,49 +12,13 @@ export interface ValueChangeEvent {
|
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
interface NativeProps extends ViewProps {
|
|
14
|
-
/**
|
|
15
|
-
* The current value of the switch
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
15
|
value?: WithDefault<boolean, false>;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* The intensity of the blur effect (0-100)
|
|
22
|
-
* @default 10.0
|
|
23
|
-
*/
|
|
24
16
|
blurAmount?: WithDefault<Double, 10.0>;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The color of the switch thumb
|
|
28
|
-
* Note: Not supported by the Android implementation (no-op).
|
|
29
|
-
* Use the native iOS Switch for platform-specific thumb colors.
|
|
30
|
-
* @default '#FFFFFF'
|
|
31
|
-
*/
|
|
17
|
+
blurRounds?: WithDefault<Int32, 5>;
|
|
32
18
|
thumbColor?: WithDefault<string, '#FFFFFF'>;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* The track color when switch is off
|
|
36
|
-
* Note: Not supported by the Android implementation (no-op).
|
|
37
|
-
* Use the native iOS Switch for platform-specific off-state colors.
|
|
38
|
-
* @default '#E5E5EA'
|
|
39
|
-
*/
|
|
40
19
|
trackColorOff?: WithDefault<string, '#E5E5EA'>;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* The track color when switch is on
|
|
44
|
-
* @default '#34C759'
|
|
45
|
-
*/
|
|
46
20
|
trackColorOn?: WithDefault<string, '#34C759'>;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Whether the switch is disabled
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
21
|
disabled?: WithDefault<boolean, false>;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Callback invoked when the switch value changes
|
|
56
|
-
*/
|
|
57
22
|
onValueChange?: DirectEventHandler<Readonly<ValueChangeEvent>>;
|
|
58
23
|
}
|
|
59
24
|
|
|
@@ -3,6 +3,7 @@ import type { ViewProps } from 'react-native';
|
|
|
3
3
|
import type {
|
|
4
4
|
WithDefault,
|
|
5
5
|
Double,
|
|
6
|
+
Int32,
|
|
6
7
|
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
7
8
|
|
|
8
9
|
export type BlurType =
|
|
@@ -31,6 +32,7 @@ export type BlurType =
|
|
|
31
32
|
interface NativeProps extends ViewProps {
|
|
32
33
|
blurAmount?: WithDefault<Double, 10.0>;
|
|
33
34
|
blurType?: WithDefault<BlurType, 'xlight'>;
|
|
35
|
+
blurRounds?: WithDefault<Int32, 5>;
|
|
34
36
|
reducedTransparencyFallbackColor?: WithDefault<string, '#FFFFFF'>;
|
|
35
37
|
ignoreSafeArea?: WithDefault<boolean, true>;
|
|
36
38
|
}
|
|
@@ -3,11 +3,6 @@ import type { ViewProps } from 'react-native';
|
|
|
3
3
|
import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
4
|
|
|
5
5
|
interface NativeProps extends ViewProps {
|
|
6
|
-
/**
|
|
7
|
-
* The spacing value for the glass container effect
|
|
8
|
-
* Platform: iOS only (iOS 26+)
|
|
9
|
-
* @default 0
|
|
10
|
-
*/
|
|
11
6
|
spacing?: Double;
|
|
12
7
|
}
|
|
13
8
|
|
|
@@ -8,46 +8,11 @@ import type {
|
|
|
8
8
|
export type GlassType = 'clear' | 'regular';
|
|
9
9
|
|
|
10
10
|
interface NativeProps extends ViewProps {
|
|
11
|
-
/**
|
|
12
|
-
* The type of glass effect to apply
|
|
13
|
-
* Platform: iOS only
|
|
14
|
-
* @default 'clear'
|
|
15
|
-
*/
|
|
16
11
|
glassType?: WithDefault<GlassType, 'clear'>;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The tint color of the glass effect
|
|
20
|
-
* Platform: iOS only
|
|
21
|
-
* @default 'clear'
|
|
22
|
-
*/
|
|
23
12
|
glassTintColor?: WithDefault<string, 'clear'>;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* The opacity of the glass effect (0-1)
|
|
27
|
-
* Platform: iOS only
|
|
28
|
-
* @default 1.0
|
|
29
|
-
*/
|
|
30
13
|
glassOpacity?: WithDefault<Double, 1.0>;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Fallback color when reduced transparency is enabled
|
|
34
|
-
* Platform: iOS only
|
|
35
|
-
* @default '#FFFFFF'
|
|
36
|
-
*/
|
|
37
14
|
reducedTransparencyFallbackColor?: WithDefault<string, '#FFFFFF'>;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Whether the glass view should be interactive
|
|
41
|
-
* Platform: iOS only
|
|
42
|
-
* @default true
|
|
43
|
-
*/
|
|
44
15
|
isInteractive?: WithDefault<boolean, true>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Whether the glass view should ignore safe area insets
|
|
48
|
-
* Platform: iOS only
|
|
49
|
-
* @default true
|
|
50
|
-
*/
|
|
51
16
|
ignoreSafeArea?: WithDefault<boolean, true>;
|
|
52
17
|
}
|
|
53
18
|
|
|
@@ -3,6 +3,7 @@ import type { ViewProps } from 'react-native';
|
|
|
3
3
|
import type {
|
|
4
4
|
WithDefault,
|
|
5
5
|
Double,
|
|
6
|
+
Int32,
|
|
6
7
|
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
7
8
|
|
|
8
9
|
export type BlurType =
|
|
@@ -36,6 +37,7 @@ export type ProgressiveBlurDirection =
|
|
|
36
37
|
interface NativeProps extends ViewProps {
|
|
37
38
|
blurAmount?: WithDefault<Double, 20.0>;
|
|
38
39
|
blurType?: WithDefault<BlurType, 'regular'>;
|
|
40
|
+
blurRounds?: WithDefault<Int32, 5>;
|
|
39
41
|
direction?: WithDefault<ProgressiveBlurDirection, 'blurredTopClearBottom'>;
|
|
40
42
|
startOffset?: WithDefault<Double, 0.0>;
|
|
41
43
|
reducedTransparencyFallbackColor?: WithDefault<string, '#FFFFFF'>;
|
|
@@ -17,9 +17,19 @@ export interface BlurSwitchProps {
|
|
|
17
17
|
* @description The intensity of the blur effect (0-100)
|
|
18
18
|
*
|
|
19
19
|
* @platform android
|
|
20
|
+
*
|
|
20
21
|
* @default 10
|
|
21
22
|
*/
|
|
22
23
|
blurAmount?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @description The number of blur interactions to perform for a smoother
|
|
26
|
+
* effect (1-15)
|
|
27
|
+
*
|
|
28
|
+
* @default 5
|
|
29
|
+
*
|
|
30
|
+
* @platform Android
|
|
31
|
+
*/
|
|
32
|
+
blurRounds?: number;
|
|
23
33
|
/**
|
|
24
34
|
* @description The color of the switch thumb
|
|
25
35
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlurSwitch.d.ts","sourceRoot":"","sources":["../../../src/BlurSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAWrE,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAEzC
|
|
1
|
+
{"version":3,"file":"BlurSwitch.d.ts","sourceRoot":"","sources":["../../../src/BlurSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAWrE,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAEzC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,IAAI,CAAC,EAAE,UAAU,CAAC;KACnB,CAAC;IAEF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyChD,CAAC;AASF,eAAe,UAAU,CAAC"}
|
|
@@ -15,11 +15,20 @@ export interface BlurViewProps {
|
|
|
15
15
|
*/
|
|
16
16
|
blurAmount?: number;
|
|
17
17
|
/**
|
|
18
|
-
* @description
|
|
18
|
+
* @description The number of blur interactions to perform for a smoother
|
|
19
|
+
* effect (1-15)
|
|
20
|
+
*
|
|
21
|
+
* @default 5
|
|
19
22
|
*
|
|
20
|
-
*
|
|
23
|
+
* @platform Android
|
|
24
|
+
*/
|
|
25
|
+
blurRounds?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @description Fallback color when reduced transparency is enabled
|
|
21
28
|
*
|
|
22
29
|
* @default '#FFFFFF'
|
|
30
|
+
*
|
|
31
|
+
* @platform iOS
|
|
23
32
|
*/
|
|
24
33
|
reducedTransparencyFallbackColor?: string;
|
|
25
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlurView.d.ts","sourceRoot":"","sources":["../../../src/BlurView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrE,OAA4B,EAC1B,KAAK,QAAQ,EACd,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;OAMG;IACH,gCAA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,eAAe,QAAQ,CAAC"}
|
|
@@ -2,10 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { type ViewProps } from 'react-native';
|
|
3
3
|
export interface LiquidGlassContainerProps extends ViewProps {
|
|
4
4
|
/**
|
|
5
|
-
* The spacing value for the glass container effect
|
|
6
|
-
* Platform: iOS only (iOS 26+)
|
|
5
|
+
* @description The spacing value for the glass container effect
|
|
7
6
|
*
|
|
8
7
|
* @default 0
|
|
8
|
+
*
|
|
9
|
+
* @platform iOS
|
|
9
10
|
*/
|
|
10
11
|
spacing?: number;
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiquidGlassContainer.d.ts","sourceRoot":"","sources":["../../../src/LiquidGlassContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IAC1D
|
|
1
|
+
{"version":3,"file":"LiquidGlassContainer.d.ts","sourceRoot":"","sources":["../../../src/LiquidGlassContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IAC1D;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAuBpE,CAAC"}
|
|
@@ -3,55 +3,65 @@ import type { ViewStyle, StyleProp } from 'react-native';
|
|
|
3
3
|
import { type GlassType } from './ReactNativeLiquidGlassViewNativeComponent';
|
|
4
4
|
export interface LiquidGlassViewProps {
|
|
5
5
|
/**
|
|
6
|
-
* The type of glass effect to apply
|
|
7
|
-
* Platform: iOS 26+ only
|
|
6
|
+
* @description The type of glass effect to apply
|
|
8
7
|
*
|
|
9
8
|
* @default 'clear'
|
|
9
|
+
*
|
|
10
|
+
* @platform iOS 26+
|
|
10
11
|
*/
|
|
11
12
|
glassType?: GlassType;
|
|
12
13
|
/**
|
|
13
|
-
* The tint color of the glass effect
|
|
14
|
-
*
|
|
15
|
-
* Platform: iOS 26+ only
|
|
14
|
+
* @description The tint color of the glass effect. Accepts hex color strings
|
|
15
|
+
* like '#FFFFFF' or color names
|
|
16
16
|
*
|
|
17
17
|
* @default 'clear'
|
|
18
|
+
*
|
|
19
|
+
* @platform iOS 26+
|
|
18
20
|
*/
|
|
19
21
|
glassTintColor?: string;
|
|
20
22
|
/**
|
|
21
|
-
* The opacity of the glass effect (0-1)
|
|
22
|
-
* Platform: iOS 26+ only
|
|
23
|
+
* @description The opacity of the glass effect (0-1)
|
|
23
24
|
*
|
|
24
25
|
* @default 1.0
|
|
26
|
+
*
|
|
27
|
+
* @platform iOS 26+
|
|
25
28
|
*/
|
|
26
29
|
glassOpacity?: number;
|
|
27
30
|
/**
|
|
28
|
-
* Fallback color when reduced transparency is enabled or on
|
|
29
|
-
*
|
|
30
|
-
* Platform: iOS only
|
|
31
|
+
* @description Fallback color when reduced transparency is enabled or on
|
|
32
|
+
* older iOS versions
|
|
31
33
|
*
|
|
32
34
|
* @default '#FFFFFF'
|
|
35
|
+
*
|
|
36
|
+
* @platform iOS
|
|
33
37
|
*/
|
|
34
38
|
reducedTransparencyFallbackColor?: string;
|
|
35
39
|
/**
|
|
36
|
-
* Whether the glass view should be interactive
|
|
37
|
-
* Platform: iOS 26+ only
|
|
40
|
+
* @description Whether the glass view should be interactive
|
|
38
41
|
*
|
|
39
42
|
* @default true
|
|
43
|
+
*
|
|
44
|
+
* @platform iOS
|
|
40
45
|
*/
|
|
41
46
|
isInteractive?: boolean;
|
|
42
47
|
/**
|
|
43
|
-
* Whether the glass view should ignore safe area insets
|
|
44
|
-
* Platform: iOS 26+ only
|
|
48
|
+
* @description Whether the glass view should ignore safe area insets
|
|
45
49
|
*
|
|
46
50
|
* @default false
|
|
51
|
+
*
|
|
52
|
+
* @platform iOS
|
|
47
53
|
*/
|
|
48
54
|
ignoreSafeArea?: boolean;
|
|
49
55
|
/**
|
|
50
|
-
* Style object for the liquid glass view
|
|
56
|
+
* @description Style object for the liquid glass view
|
|
57
|
+
*
|
|
58
|
+
* @default undefined
|
|
51
59
|
*/
|
|
52
60
|
style?: StyleProp<ViewStyle>;
|
|
53
61
|
/**
|
|
54
62
|
* Child components to render inside the liquid glass view
|
|
63
|
+
*
|
|
64
|
+
* @default undefined
|
|
55
65
|
*/
|
|
56
66
|
children?: React.ReactNode;
|
|
57
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiquidGlassView.d.ts","sourceRoot":"","sources":["../../../src/LiquidGlassView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAmC,EACjC,KAAK,SAAS,EACf,MAAM,6CAA6C,CAAC;AAGrD,MAAM,WAAW,oBAAoB;IACnC
|
|
1
|
+
{"version":3,"file":"LiquidGlassView.d.ts","sourceRoot":"","sources":["../../../src/LiquidGlassView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAmC,EACjC,KAAK,SAAS,EACf,MAAM,6CAA6C,CAAC;AAGrD,MAAM,WAAW,oBAAoB;IACnC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;;OAOG;IACH,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAE1C;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsD1D,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -15,6 +15,15 @@ export interface ProgressiveBlurViewProps {
|
|
|
15
15
|
* @default 20
|
|
16
16
|
*/
|
|
17
17
|
blurAmount?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @description The number of blur interactions to perform for a smoother
|
|
20
|
+
* effect (1-15)
|
|
21
|
+
*
|
|
22
|
+
* @default 5
|
|
23
|
+
*
|
|
24
|
+
* @platform Android
|
|
25
|
+
*/
|
|
26
|
+
blurRounds?: number;
|
|
18
27
|
/**
|
|
19
28
|
* @description The direction of the progressive blur gradient
|
|
20
29
|
* - 'blurredTopClearBottom': Blur starts at top, clear at bottom
|
|
@@ -35,9 +44,9 @@ export interface ProgressiveBlurViewProps {
|
|
|
35
44
|
/**
|
|
36
45
|
* @description Fallback color when reduced transparency is enabled
|
|
37
46
|
*
|
|
38
|
-
* Accepts hex color strings like `#FFFFFF`
|
|
39
|
-
*
|
|
40
47
|
* @default '#FFFFFF'
|
|
48
|
+
*
|
|
49
|
+
* @platform iOS
|
|
41
50
|
*/
|
|
42
51
|
reducedTransparencyFallbackColor?: string;
|
|
43
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressiveBlurView.d.ts","sourceRoot":"","sources":["../../../src/ProgressiveBlurView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA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;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAC;IAErC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAE1C;;;;OAIG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAE1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAgDlE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,46 +1,16 @@
|
|
|
1
1
|
import type { ViewProps } from 'react-native';
|
|
2
|
-
import type { WithDefault, Double, DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
2
|
+
import type { WithDefault, Double, DirectEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
export interface ValueChangeEvent {
|
|
4
4
|
value: boolean;
|
|
5
5
|
}
|
|
6
6
|
interface NativeProps extends ViewProps {
|
|
7
|
-
/**
|
|
8
|
-
* The current value of the switch
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
7
|
value?: WithDefault<boolean, false>;
|
|
12
|
-
/**
|
|
13
|
-
* The intensity of the blur effect (0-100)
|
|
14
|
-
* @default 10.0
|
|
15
|
-
*/
|
|
16
8
|
blurAmount?: WithDefault<Double, 10.0>;
|
|
17
|
-
|
|
18
|
-
* The color of the switch thumb
|
|
19
|
-
* Note: Not supported by the Android implementation (no-op).
|
|
20
|
-
* Use the native iOS Switch for platform-specific thumb colors.
|
|
21
|
-
* @default '#FFFFFF'
|
|
22
|
-
*/
|
|
9
|
+
blurRounds?: WithDefault<Int32, 5>;
|
|
23
10
|
thumbColor?: WithDefault<string, '#FFFFFF'>;
|
|
24
|
-
/**
|
|
25
|
-
* The track color when switch is off
|
|
26
|
-
* Note: Not supported by the Android implementation (no-op).
|
|
27
|
-
* Use the native iOS Switch for platform-specific off-state colors.
|
|
28
|
-
* @default '#E5E5EA'
|
|
29
|
-
*/
|
|
30
11
|
trackColorOff?: WithDefault<string, '#E5E5EA'>;
|
|
31
|
-
/**
|
|
32
|
-
* The track color when switch is on
|
|
33
|
-
* @default '#34C759'
|
|
34
|
-
*/
|
|
35
12
|
trackColorOn?: WithDefault<string, '#34C759'>;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the switch is disabled
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
13
|
disabled?: WithDefault<boolean, false>;
|
|
41
|
-
/**
|
|
42
|
-
* Callback invoked when the switch value changes
|
|
43
|
-
*/
|
|
44
14
|
onValueChange?: DirectEventHandler<Readonly<ValueChangeEvent>>;
|
|
45
15
|
}
|
|
46
16
|
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNativeBlurSwitchNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/ReactNativeBlurSwitchNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ReactNativeBlurSwitchNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/ReactNativeBlurSwitchNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,kBAAkB,EAClB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAEnD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,WAAY,SAAQ,SAAS;IACrC,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC5C,aAAa,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC/C,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACvC,aAAa,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC;CAChE;;AAED,wBAEG"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { ViewProps } from 'react-native';
|
|
2
|
-
import type { WithDefault, Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
2
|
+
import type { WithDefault, Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
export type BlurType = 'xlight' | 'light' | 'dark' | 'extraDark' | 'regular' | 'prominent' | 'systemUltraThinMaterial' | 'systemThinMaterial' | 'systemMaterial' | 'systemThickMaterial' | 'systemChromeMaterial' | 'systemUltraThinMaterialLight' | 'systemThinMaterialLight' | 'systemMaterialLight' | 'systemThickMaterialLight' | 'systemChromeMaterialLight' | 'systemUltraThinMaterialDark' | 'systemThinMaterialDark' | 'systemMaterialDark' | 'systemThickMaterialDark' | 'systemChromeMaterialDark';
|
|
4
4
|
interface NativeProps extends ViewProps {
|
|
5
5
|
blurAmount?: WithDefault<Double, 10.0>;
|
|
6
6
|
blurType?: WithDefault<BlurType, 'xlight'>;
|
|
7
|
+
blurRounds?: WithDefault<Int32, 5>;
|
|
7
8
|
reducedTransparencyFallbackColor?: WithDefault<string, '#FFFFFF'>;
|
|
8
9
|
ignoreSafeArea?: WithDefault<boolean, true>;
|
|
9
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNativeBlurViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/ReactNativeBlurViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,WAAW,EACX,MAAM,
|
|
1
|
+
{"version":3,"file":"ReactNativeBlurViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/ReactNativeBlurViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,KAAK,EACN,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,QAAQ,GAChB,QAAQ,GACR,OAAO,GACP,MAAM,GACN,WAAW,GACX,SAAS,GACT,WAAW,GACX,yBAAyB,GACzB,oBAAoB,GACpB,gBAAgB,GAChB,qBAAqB,GACrB,sBAAsB,GACtB,8BAA8B,GAC9B,yBAAyB,GACzB,qBAAqB,GACrB,0BAA0B,GAC1B,2BAA2B,GAC3B,6BAA6B,GAC7B,wBAAwB,GACxB,oBAAoB,GACpB,yBAAyB,GACzB,0BAA0B,CAAC;AAE/B,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC3C,UAAU,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACnC,gCAAgC,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAClE,cAAc,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;CAC7C;;AAED,wBAA0E"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { ViewProps } from 'react-native';
|
|
2
2
|
import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
interface NativeProps extends ViewProps {
|
|
4
|
-
/**
|
|
5
|
-
* The spacing value for the glass container effect
|
|
6
|
-
* Platform: iOS only (iOS 26+)
|
|
7
|
-
* @default 0
|
|
8
|
-
*/
|
|
9
4
|
spacing?: Double;
|
|
10
5
|
}
|
|
11
6
|
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNativeLiquidGlassContainerNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/ReactNativeLiquidGlassContainerNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAExE,UAAU,WAAY,SAAQ,SAAS;IACrC
|
|
1
|
+
{"version":3,"file":"ReactNativeLiquidGlassContainerNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/ReactNativeLiquidGlassContainerNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAExE,UAAU,WAAY,SAAQ,SAAS;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;;AAED,wBAGE"}
|
|
@@ -2,41 +2,11 @@ import type { ViewProps } from 'react-native';
|
|
|
2
2
|
import type { WithDefault, Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
export type GlassType = 'clear' | 'regular';
|
|
4
4
|
interface NativeProps extends ViewProps {
|
|
5
|
-
/**
|
|
6
|
-
* The type of glass effect to apply
|
|
7
|
-
* Platform: iOS only
|
|
8
|
-
* @default 'clear'
|
|
9
|
-
*/
|
|
10
5
|
glassType?: WithDefault<GlassType, 'clear'>;
|
|
11
|
-
/**
|
|
12
|
-
* The tint color of the glass effect
|
|
13
|
-
* Platform: iOS only
|
|
14
|
-
* @default 'clear'
|
|
15
|
-
*/
|
|
16
6
|
glassTintColor?: WithDefault<string, 'clear'>;
|
|
17
|
-
/**
|
|
18
|
-
* The opacity of the glass effect (0-1)
|
|
19
|
-
* Platform: iOS only
|
|
20
|
-
* @default 1.0
|
|
21
|
-
*/
|
|
22
7
|
glassOpacity?: WithDefault<Double, 1.0>;
|
|
23
|
-
/**
|
|
24
|
-
* Fallback color when reduced transparency is enabled
|
|
25
|
-
* Platform: iOS only
|
|
26
|
-
* @default '#FFFFFF'
|
|
27
|
-
*/
|
|
28
8
|
reducedTransparencyFallbackColor?: WithDefault<string, '#FFFFFF'>;
|
|
29
|
-
/**
|
|
30
|
-
* Whether the glass view should be interactive
|
|
31
|
-
* Platform: iOS only
|
|
32
|
-
* @default true
|
|
33
|
-
*/
|
|
34
9
|
isInteractive?: WithDefault<boolean, true>;
|
|
35
|
-
/**
|
|
36
|
-
* Whether the glass view should ignore safe area insets
|
|
37
|
-
* Platform: iOS only
|
|
38
|
-
* @default true
|
|
39
|
-
*/
|
|
40
10
|
ignoreSafeArea?: WithDefault<boolean, true>;
|
|
41
11
|
}
|
|
42
12
|
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNativeLiquidGlassViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/ReactNativeLiquidGlassViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACP,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE5C,UAAU,WAAY,SAAQ,SAAS;IACrC
|
|
1
|
+
{"version":3,"file":"ReactNativeLiquidGlassViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/ReactNativeLiquidGlassViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACP,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE5C,UAAU,WAAY,SAAQ,SAAS;IACrC,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5C,cAAc,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACxC,gCAAgC,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAClE,aAAa,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC3C,cAAc,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;CAC7C;;AAED,wBAGE"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { ViewProps } from 'react-native';
|
|
2
|
-
import type { WithDefault, Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
2
|
+
import type { WithDefault, Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
export type BlurType = 'xlight' | 'light' | 'dark' | 'extraDark' | 'regular' | 'prominent' | 'systemUltraThinMaterial' | 'systemThinMaterial' | 'systemMaterial' | 'systemThickMaterial' | 'systemChromeMaterial' | 'systemUltraThinMaterialLight' | 'systemThinMaterialLight' | 'systemMaterialLight' | 'systemThickMaterialLight' | 'systemChromeMaterialLight' | 'systemUltraThinMaterialDark' | 'systemThinMaterialDark' | 'systemMaterialDark' | 'systemThickMaterialDark' | 'systemChromeMaterialDark';
|
|
4
4
|
export type ProgressiveBlurDirection = 'blurredTopClearBottom' | 'blurredBottomClearTop' | 'blurredCenterClearTopAndBottom';
|
|
5
5
|
interface NativeProps extends ViewProps {
|
|
6
6
|
blurAmount?: WithDefault<Double, 20.0>;
|
|
7
7
|
blurType?: WithDefault<BlurType, 'regular'>;
|
|
8
|
+
blurRounds?: WithDefault<Int32, 5>;
|
|
8
9
|
direction?: WithDefault<ProgressiveBlurDirection, 'blurredTopClearBottom'>;
|
|
9
10
|
startOffset?: WithDefault<Double, 0.0>;
|
|
10
11
|
reducedTransparencyFallbackColor?: WithDefault<string, '#FFFFFF'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNativeProgressiveBlurViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/ReactNativeProgressiveBlurViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,WAAW,EACX,MAAM,
|
|
1
|
+
{"version":3,"file":"ReactNativeProgressiveBlurViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/ReactNativeProgressiveBlurViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,KAAK,EACN,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,QAAQ,GAChB,QAAQ,GACR,OAAO,GACP,MAAM,GACN,WAAW,GACX,SAAS,GACT,WAAW,GACX,yBAAyB,GACzB,oBAAoB,GACpB,gBAAgB,GAChB,qBAAqB,GACrB,sBAAsB,GACtB,8BAA8B,GAC9B,yBAAyB,GACzB,qBAAqB,GACrB,0BAA0B,GAC1B,2BAA2B,GAC3B,6BAA6B,GAC7B,wBAAwB,GACxB,oBAAoB,GACpB,yBAAyB,GACzB,0BAA0B,CAAC;AAE/B,MAAM,MAAM,wBAAwB,GAChC,uBAAuB,GACvB,uBAAuB,GACvB,gCAAgC,CAAC;AAErC,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC5C,UAAU,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,WAAW,CAAC,wBAAwB,EAAE,uBAAuB,CAAC,CAAC;IAC3E,WAAW,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,gCAAgC,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACnE;;AAED,wBAEE"}
|