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";
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

View File

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