react-native-blur/index.d.ts
David Guerin 47a199ef98
Feat/eightbitlab blurview (#358)
* Update build.gradle

* Update build.gradle

* feat(android-blurview): migrate to com.eightbitlab.blurview

* fix(types): proptypes and typescript

- removed viewRef references

* fix(offset): fixing offset on android

* feat(harmonized-behavior): blurview can now have children on android

- Same behavior on iOS and Android now

* Update BlurView.android.js

* Update index.js.flow

* Create App.js

* Delete App.android.js

* Delete App.ios.js

* Update README.md
2020-03-04 17:46:11 +00:00

26 lines
643 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>
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, {}> {}