Page MenuHomePhabricator

D9260.id31554.diff
No OneTemporary

D9260.id31554.diff

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

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)

Event Timeline