mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-01-12 17:44:13 +00:00
type definition updates (#288)
This commit is contained in:
parent
fbb427502e
commit
74892c4fac
14
index.d.ts
vendored
14
index.d.ts
vendored
@ -1,18 +1,22 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { ViewStyle } from 'react-native';
|
import { StyleProp, ViewStyle } from 'react-native';
|
||||||
|
|
||||||
export interface BlurViewProperties {
|
export interface BlurViewProperties {
|
||||||
blurType: 'xlight' | 'light' | 'dark'
|
blurType:
|
||||||
|
| 'xlight'
|
||||||
|
| 'light'
|
||||||
|
| 'dark'
|
||||||
// tvOS only
|
// tvOS only
|
||||||
| 'extraDark' | 'regular' | 'prominent';
|
| 'extraDark'
|
||||||
|
| 'regular'
|
||||||
|
| 'prominent';
|
||||||
blurAmount?: number; // 0 - 100
|
blurAmount?: number; // 0 - 100
|
||||||
style?: ViewStyle;
|
style?: StyleProp<ViewStyle>;
|
||||||
viewRef?: number | null;
|
viewRef?: number | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class BlurView extends React.Component<BlurViewProperties, {}> {}
|
export class BlurView extends React.Component<BlurViewProperties, {}> {}
|
||||||
|
|
||||||
|
|
||||||
export interface VibrancyViewProperties extends BlurViewProperties {}
|
export interface VibrancyViewProperties extends BlurViewProperties {}
|
||||||
|
|
||||||
export class VibrancyView extends React.Component<VibrancyViewProperties, {}> {}
|
export class VibrancyView extends React.Component<VibrancyViewProperties, {}> {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user