type definition updates (#288)

This commit is contained in:
Kennie J. Davis 2019-03-26 10:51:07 -07:00 committed by Nicolas Charpentier
parent fbb427502e
commit 74892c4fac
1 changed files with 9 additions and 5 deletions

14
index.d.ts vendored
View File

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