File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import { ViewStyle } from 'react-native' ;
2
+ import { StyleProp , ViewStyle } from 'react-native' ;
3
3
4
4
export interface BlurViewProperties {
5
- blurType : 'xlight' | 'light' | 'dark'
5
+ blurType :
6
+ | 'xlight'
7
+ | 'light'
8
+ | 'dark'
6
9
// tvOS only
7
- | 'extraDark' | 'regular' | 'prominent' ;
10
+ | 'extraDark'
11
+ | 'regular'
12
+ | 'prominent' ;
8
13
blurAmount ?: number ; // 0 - 100
9
- style ?: ViewStyle ;
14
+ style ?: StyleProp < ViewStyle > ;
10
15
viewRef ?: number | null ;
11
16
}
12
17
13
18
export class BlurView extends React . Component < BlurViewProperties , { } > { }
14
19
15
-
16
20
export interface VibrancyViewProperties extends BlurViewProperties { }
17
21
18
22
export class VibrancyView extends React . Component < VibrancyViewProperties , { } > { }
You can’t perform that action at this time.
0 commit comments