Commit 2e3344f8 authored by XieZhiXiong's avatar XieZhiXiong

chore: 移除BlurView容器

parent 34a069c5
......@@ -5,7 +5,6 @@
* @LastEditTime: 2021-08-27 11:23:03
* @Description: 遮罩层
*/
import { BlurView } from 'expo-blur';
import React, { useRef, useEffect, useState } from 'react';
import {
View,
......@@ -78,10 +77,7 @@ interface OverlayProps {
duration?: number;
children?: React.ReactNode;
/**
* 背景模糊-模糊半径
*/
blurAmount?: number;
/**
* 自定义bottomStyle
*/
......@@ -151,7 +147,6 @@ const Overlay: React.FC<OverlayProps> = (props: OverlayProps) => {
children,
useModal = false,
duration,
blurAmount = 0,
bottomStyle = 0,
} = props;
const [display, setDisplay] = useState(false);
......@@ -226,13 +221,6 @@ const Overlay: React.FC<OverlayProps> = (props: OverlayProps) => {
onRequestClose={hanldePress}
style={style}
>
{!!blurAmount && (
<BlurView
style={[styles['overlay-blur']]}
blurType="dark"
blurAmount={blurAmount}
/>
)}
<Animated.View
style={StyleSheet.flatten([
styles['overlay-mask'],
......@@ -283,7 +271,6 @@ Overlay.defaultProps = {
children: null,
useModal: false,
duration: 300,
blurAmount: 0,
};
export default Overlay;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment