react-native-blur/index.d.ts

23 lines
570 B
TypeScript
Raw Normal View History

2019-03-26 18:19:21 +00:00
import * as React from "react";
import { StyleProp, ViewStyle } from "react-native";
export interface BlurViewProperties {
2019-03-26 17:51:07 +00:00
blurType:
2019-03-26 18:19:21 +00:00
| "xlight"
| "light"
| "dark"
// tvOS only
2019-03-26 18:19:21 +00:00
| "extraDark"
| "regular"
| "prominent";
blurAmount?: number; // 0 - 100
2019-03-26 17:51:07 +00:00
style?: StyleProp<ViewStyle>;
viewRef?: number | null;
}
export class BlurView extends React.Component<BlurViewProperties, {}> {}
export interface VibrancyViewProperties extends BlurViewProperties {}
export class VibrancyView extends React.Component<VibrancyViewProperties, {}> {}