mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-01-12 17:44:13 +00:00
e5fa22fb5c
Added missing properties in types
27 lines
669 B
TypeScript
27 lines
669 B
TypeScript
import * as React from "react";
|
|
import { StyleProp, ViewStyle } from "react-native";
|
|
|
|
export interface BlurViewProperties {
|
|
blurType:
|
|
| "xlight"
|
|
| "light"
|
|
| "dark"
|
|
// tvOS and iOS 10+ only
|
|
| "regular"
|
|
| "prominent"
|
|
// tvOS only
|
|
| "extraDark"
|
|
blurAmount?: number // 0 - 100
|
|
style?: StyleProp<ViewStyle>
|
|
viewRef?: number | null
|
|
blurRadius?: number
|
|
downsampleFactor?: number
|
|
overlayColor?: string
|
|
}
|
|
|
|
export class BlurView extends React.Component<BlurViewProperties, {}> {}
|
|
|
|
export interface VibrancyViewProperties extends BlurViewProperties {}
|
|
|
|
export class VibrancyView extends React.Component<VibrancyViewProperties, {}> {}
|