2019-03-26 18:19:21 +00:00
|
|
|
import * as React from "react";
|
|
|
|
import { StyleProp, ViewStyle } from "react-native";
|
2017-08-07 08:57:25 +00:00
|
|
|
|
|
|
|
export interface BlurViewProperties {
|
2019-03-26 17:51:07 +00:00
|
|
|
blurType:
|
2019-03-26 18:19:21 +00:00
|
|
|
| "xlight"
|
|
|
|
| "light"
|
|
|
|
| "dark"
|
2020-01-18 08:47:17 +00:00
|
|
|
// iOS 13+ only
|
|
|
|
| "chromeMaterial"
|
|
|
|
| "material"
|
|
|
|
| "thickMaterial"
|
|
|
|
| "thinMaterial"
|
|
|
|
| "ultraThinMaterial"
|
|
|
|
| "chromeMaterialDark"
|
|
|
|
| "materialDark"
|
|
|
|
| "thickMaterialDark"
|
|
|
|
| "thinMaterialDark"
|
|
|
|
| "ultraThinMaterialDark"
|
|
|
|
| "chromeMaterialLight"
|
|
|
|
| "materialLight"
|
|
|
|
| "thickMaterialLight"
|
|
|
|
| "thinMaterialLight"
|
|
|
|
| "ultraThinMaterialLight"
|
2019-03-27 12:57:24 +00:00
|
|
|
// tvOS and iOS 10+ only
|
2019-03-26 18:19:21 +00:00
|
|
|
| "regular"
|
2019-03-27 12:57:24 +00:00
|
|
|
| "prominent"
|
|
|
|
// tvOS only
|
2019-03-27 15:58:09 +00:00
|
|
|
| "extraDark"
|
|
|
|
blurAmount?: number // 0 - 100
|
|
|
|
style?: StyleProp<ViewStyle>
|
|
|
|
viewRef?: number | null
|
|
|
|
blurRadius?: number
|
|
|
|
downsampleFactor?: number
|
|
|
|
overlayColor?: string
|
2017-08-07 08:57:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export class BlurView extends React.Component<BlurViewProperties, {}> {}
|
|
|
|
|
|
|
|
export interface VibrancyViewProperties extends BlurViewProperties {}
|
|
|
|
|
|
|
|
export class VibrancyView extends React.Component<VibrancyViewProperties, {}> {}
|