Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32768853
bottom-sheet-backdrop.react.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
999 B
Referenced Files
None
Subscribers
None
bottom-sheet-backdrop.react.js
View Options
// @flow
import
{
BottomSheetBackdrop
as
Backdrop
}
from
'@gorhom/bottom-sheet'
;
import
*
as
React
from
'react'
;
import
type
{
SharedValue
}
from
'react-native-reanimated'
;
type
BackdropPressBehavior
=
'none'
|
'close'
|
'collapse'
;
type
Props
=
{
+
animatedIndex
:
SharedValue
<
number
>
,
+
animatedPosition
:
SharedValue
<
number
>
,
+
opacity
?:
number
,
+
appearsOnIndex
?:
number
,
+
disappearsOnIndex
?:
number
,
+
enableTouchThrough
?:
boolean
,
+
pressBehavior
?:
BackdropPressBehavior
|
number
,
};
function
BottomSheetBackdrop
(
props
:
Props
)
:
React
.
Node
{
const
{
opacity
,
appearsOnIndex
,
disappearsOnIndex
,
enableTouchThrough
,
pressBehavior
,
}
=
props
;
return
(
<
Backdrop
{...
props
}
opacity
=
{
opacity
??
0.5
}
appearsOnIndex
=
{
appearsOnIndex
??
0
}
disappearsOnIndex
=
{
disappearsOnIndex
??
-
1
}
enableTouchThrough
=
{
enableTouchThrough
??
false
}
pressBehavior
=
{
pressBehavior
??
'close'
}
/>
);
}
export
default
BottomSheetBackdrop
;
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Fri, Jan 9, 12:57 PM (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5905040
Default Alt Text
bottom-sheet-backdrop.react.js (999 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment