Commit 2e3344f8 authored by XieZhiXiong's avatar XieZhiXiong

chore: 移除BlurView容器

parent 34a069c5
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
* @LastEditTime: 2021-08-27 11:23:03 * @LastEditTime: 2021-08-27 11:23:03
* @Description: 遮罩层 * @Description: 遮罩层
*/ */
import { BlurView } from 'expo-blur';
import React, { useRef, useEffect, useState } from 'react'; import React, { useRef, useEffect, useState } from 'react';
import { import {
View, View,
...@@ -78,10 +77,7 @@ interface OverlayProps { ...@@ -78,10 +77,7 @@ interface OverlayProps {
duration?: number; duration?: number;
children?: React.ReactNode; children?: React.ReactNode;
/**
* 背景模糊-模糊半径
*/
blurAmount?: number;
/** /**
* 自定义bottomStyle * 自定义bottomStyle
*/ */
...@@ -151,7 +147,6 @@ const Overlay: React.FC<OverlayProps> = (props: OverlayProps) => { ...@@ -151,7 +147,6 @@ const Overlay: React.FC<OverlayProps> = (props: OverlayProps) => {
children, children,
useModal = false, useModal = false,
duration, duration,
blurAmount = 0,
bottomStyle = 0, bottomStyle = 0,
} = props; } = props;
const [display, setDisplay] = useState(false); const [display, setDisplay] = useState(false);
...@@ -226,13 +221,6 @@ const Overlay: React.FC<OverlayProps> = (props: OverlayProps) => { ...@@ -226,13 +221,6 @@ const Overlay: React.FC<OverlayProps> = (props: OverlayProps) => {
onRequestClose={hanldePress} onRequestClose={hanldePress}
style={style} style={style}
> >
{!!blurAmount && (
<BlurView
style={[styles['overlay-blur']]}
blurType="dark"
blurAmount={blurAmount}
/>
)}
<Animated.View <Animated.View
style={StyleSheet.flatten([ style={StyleSheet.flatten([
styles['overlay-mask'], styles['overlay-mask'],
...@@ -283,7 +271,6 @@ Overlay.defaultProps = { ...@@ -283,7 +271,6 @@ Overlay.defaultProps = {
children: null, children: null,
useModal: false, useModal: false,
duration: 300, duration: 300,
blurAmount: 0,
}; };
export default Overlay; 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