mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-01-13 01:54:15 +00:00
47a199ef98
* 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
26 lines
643 B
TypeScript
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, {}> {}
|