Skip to content

Commit 74892c4

Browse files
sellmeadogcharpeni
authored andcommitted
type definition updates (#288)
1 parent fbb4275 commit 74892c4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

index.d.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
import * as React from 'react';
2-
import { ViewStyle } from 'react-native';
2+
import { StyleProp, ViewStyle } from 'react-native';
33

44
export interface BlurViewProperties {
5-
blurType: 'xlight' | 'light' | 'dark'
5+
blurType:
6+
| 'xlight'
7+
| 'light'
8+
| 'dark'
69
// tvOS only
7-
| 'extraDark' | 'regular' | 'prominent';
10+
| 'extraDark'
11+
| 'regular'
12+
| 'prominent';
813
blurAmount?: number; // 0 - 100
9-
style?: ViewStyle;
14+
style?: StyleProp<ViewStyle>;
1015
viewRef?: number | null;
1116
}
1217

1318
export class BlurView extends React.Component<BlurViewProperties, {}> {}
1419

15-
1620
export interface VibrancyViewProperties extends BlurViewProperties {}
1721

1822
export class VibrancyView extends React.Component<VibrancyViewProperties, {}> {}

0 commit comments

Comments
 (0)