type checks

This commit is contained in:
Alan Kenyon 2019-08-21 09:16:06 -07:00
parent bd54c4c87c
commit 584f6014f0
2 changed files with 5 additions and 3 deletions

3
index.d.ts vendored
View File

@ -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

View File

@ -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,
}; };