type checks
This commit is contained in:
parent
bd54c4c87c
commit
584f6014f0
|
@ -2,7 +2,7 @@ import * as React from "react";
|
|||
import { StyleProp, ViewStyle } from "react-native";
|
||||
|
||||
export interface BlurViewProperties {
|
||||
blurType:
|
||||
blurType?:
|
||||
| "xlight"
|
||||
| "light"
|
||||
| "dark"
|
||||
|
@ -28,6 +28,7 @@ export interface BlurViewProperties {
|
|||
// tvOS only
|
||||
| "extraDark"
|
||||
blurAmount?: number // 0 - 100
|
||||
reducedTransparencyFallbackColor?: string
|
||||
style?: StyleProp<ViewStyle>
|
||||
blurRadius?: number
|
||||
downsampleFactor?: number
|
||||
|
|
|
@ -33,8 +33,9 @@ export type BlurType =
|
|||
| 'extraDark';
|
||||
|
||||
export type BlurViewProps = {
|
||||
blurType: BlurType,
|
||||
blurAmount: number, // 0 - 100
|
||||
blurType?: BlurType,
|
||||
blurAmount?: number, // 0 - 100,
|
||||
reducedTransparencyFallbackColor?: String,
|
||||
style?: ?ViewStyleProp,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue