react-native-blur/index.d.ts
Levi Buzolic 33d62f1f22 Flow definition (#308)
* Add flow definition

* Minor chnage to the comments in the TypeScript definition to reflect 1a061eb45222506db8722ea371f68cbc99904549
2019-03-27 08:57:24 -04:00

24 lines
599 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;
}
export class BlurView extends React.Component<BlurViewProperties, {}> {}
export interface VibrancyViewProperties extends BlurViewProperties {}
export class VibrancyView extends React.Component<VibrancyViewProperties, {}> {}