From d818985d1d26817eb73e139eef9f3a15bd940ab3 Mon Sep 17 00:00:00 2001 From: ahanriat Date: Tue, 1 Aug 2017 17:42:23 +0200 Subject: [PATCH 1/2] Add Typescript definitions --- index.d.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 00000000..514f238d --- /dev/null +++ b/index.d.ts @@ -0,0 +1,17 @@ +import * as React from 'react'; +import { ViewProperties } from 'react-native'; + +export interface BlurViewProperties { + blurType: 'xlight' | 'light' | 'dark' + // tvOS only + | 'extraDark' | 'regular' | 'prominent'; + blurAmount?: number; // 0 - 100 + style?: ViewProperties; +} + +export class BlurView extends React.Component {} + + +export interface VibrancyViewProperties extends BlurView {} + +export class VibrancyView extends React.Component {} \ No newline at end of file From 3d5391f7d61f018f1355e3bc86de6b55ec6e846b Mon Sep 17 00:00:00 2001 From: Jimmy Mayoukou Date: Wed, 2 Aug 2017 16:34:39 +0200 Subject: [PATCH 2/2] Fix typescript definition --- index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index 514f238d..9d5114d6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,17 +1,17 @@ import * as React from 'react'; -import { ViewProperties } from 'react-native'; +import { ViewStyle } from 'react-native'; export interface BlurViewProperties { blurType: 'xlight' | 'light' | 'dark' // tvOS only | 'extraDark' | 'regular' | 'prominent'; blurAmount?: number; // 0 - 100 - style?: ViewProperties; + style?: ViewStyle; } export class BlurView extends React.Component {} -export interface VibrancyViewProperties extends BlurView {} +export interface VibrancyViewProperties extends BlurViewProperties {} -export class VibrancyView extends React.Component {} \ No newline at end of file +export class VibrancyView extends React.Component {}