mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-02-18 03:16:36 +00:00
type checks
This commit is contained in:
parent
bd54c4c87c
commit
584f6014f0
3
index.d.ts
vendored
3
index.d.ts
vendored
@ -2,7 +2,7 @@ import * as React from "react";
|
|||||||
import { StyleProp, ViewStyle } from "react-native";
|
import { StyleProp, ViewStyle } from "react-native";
|
||||||
|
|
||||||
export interface BlurViewProperties {
|
export interface BlurViewProperties {
|
||||||
blurType:
|
blurType?:
|
||||||
| "xlight"
|
| "xlight"
|
||||||
| "light"
|
| "light"
|
||||||
| "dark"
|
| "dark"
|
||||||
@ -28,6 +28,7 @@ export interface BlurViewProperties {
|
|||||||
// tvOS only
|
// tvOS only
|
||||||
| "extraDark"
|
| "extraDark"
|
||||||
blurAmount?: number // 0 - 100
|
blurAmount?: number // 0 - 100
|
||||||
|
reducedTransparencyFallbackColor?: string
|
||||||
style?: StyleProp<ViewStyle>
|
style?: StyleProp<ViewStyle>
|
||||||
blurRadius?: number
|
blurRadius?: number
|
||||||
downsampleFactor?: number
|
downsampleFactor?: number
|
||||||
|
@ -33,8 +33,9 @@ export type BlurType =
|
|||||||
| 'extraDark';
|
| 'extraDark';
|
||||||
|
|
||||||
export type BlurViewProps = {
|
export type BlurViewProps = {
|
||||||
blurType: BlurType,
|
blurType?: BlurType,
|
||||||
blurAmount: number, // 0 - 100
|
blurAmount?: number, // 0 - 100,
|
||||||
|
reducedTransparencyFallbackColor?: String,
|
||||||
style?: ?ViewStyleProp,
|
style?: ?ViewStyleProp,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user