Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3342791
D9260.id31554.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
737 B
Referenced Files
None
Subscribers
None
D9260.id31554.diff
View Options
diff --git a/native/bottom-sheets/bottom-sheet.react.js b/native/bottom-sheets/bottom-sheet.react.js
--- a/native/bottom-sheets/bottom-sheet.react.js
+++ b/native/bottom-sheets/bottom-sheet.react.js
@@ -22,15 +22,6 @@
const snapPoints = React.useMemo(() => ['25%', '50%'], []);
- const onChange = React.useCallback(
- (index: number) => {
- if (index === -1) {
- onClosed();
- }
- },
- [onClosed],
- );
-
return (
<BottomSheetModal
ref={ref}
@@ -38,7 +29,7 @@
snapPoints={snapPoints}
handleComponent={BottomSheetHandle}
backdropComponent={BottomSheetBackdrop}
- onChange={onChange}
+ onDismiss={onClosed}
>
{children}
</BottomSheetModal>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 2:06 AM (17 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2567302
Default Alt Text
D9260.id31554.diff (737 B)
Attached To
Mode
D9260: [native] improve BottomSheet component close function
Attached
Detach File
Event Timeline
Log In to Comment