Add Typescript definitions (#225)

* Add Typescript definitions

* Fix typescript definition
This commit is contained in:
Antoine Hanriat 2017-08-07 10:57:25 +02:00 committed by Alexey
parent b6b50ce3c3
commit db215a9e22
1 changed files with 17 additions and 0 deletions

17
index.d.ts vendored Normal file
View File

@ -0,0 +1,17 @@
import * as React from 'react';
import { ViewStyle } from 'react-native';
export interface BlurViewProperties {
blurType: 'xlight' | 'light' | 'dark'
// tvOS only
| 'extraDark' | 'regular' | 'prominent';
blurAmount?: number; // 0 - 100
style?: ViewStyle;
}
export class BlurView extends React.Component<BlurViewProperties, {}> {}
export interface VibrancyViewProperties extends BlurViewProperties {}
export class VibrancyView extends React.Component<VibrancyViewProperties, {}> {}