aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/OverlayView.tsx
blob: f0660614fa56792cce86527d1170f5dc09825915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React from 'react';
import {View, StyleSheet} from 'react-native';

/**
 * A blurred & darkened view that grows to its parents size. Designed to be used with overlaid components.
 * @param children - children of this component.
 */
const OverlayView: React.FC = ({children}) => {
  return <View style={styles.overlayView}>{children}</View>;
};

const styles = StyleSheet.create({
  overlayView: {
    flex: 1,
    backgroundColor: '#00000080',
  },
});

export default OverlayView;