From 584f6014f0949b853586864515b7f4f63199fbcf Mon Sep 17 00:00:00 2001 From: Alan Kenyon Date: Wed, 21 Aug 2019 09:16:06 -0700 Subject: [PATCH] type checks --- index.d.ts | 3 ++- index.js.flow | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index d5890b4..968b379 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 blurRadius?: number downsampleFactor?: number diff --git a/index.js.flow b/index.js.flow index 4fc38a9..e6319d6 100644 --- a/index.js.flow +++ b/index.js.flow @@ -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, };