Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gaohuaxue-mobile-app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
前端-苏志权
gaohuaxue-mobile-app
Commits
2e3344f8
Commit
2e3344f8
authored
Nov 24, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 移除BlurView容器
parent
34a069c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
index.tsx
src/components/Overlay/index.tsx
+1
-14
No files found.
src/components/Overlay/index.tsx
View file @
2e3344f8
...
@@ -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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment