From 2e2fae378af09682370e9b4ebf59d32cae1b848c Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 19 Mar 2024 20:21:25 -0700 Subject: [PATCH] Set keyboardDismisMode to interactive on the report dialog (#3288) --- src/components/Dialog/index.tsx | 8 ++++++-- src/components/Dialog/types.ts | 8 +++++++- src/components/ReportDialog/index.tsx | 4 +++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx index 0da2919c..a85a1c4f 100644 --- a/src/components/Dialog/index.tsx +++ b/src/components/Dialog/index.tsx @@ -206,12 +206,16 @@ export function Inner({children, style}: DialogInnerProps) { ) } -export function ScrollableInner({children, style}: DialogInnerProps) { +export function ScrollableInner({ + children, + keyboardDismissMode, + style, +}: DialogInnerProps) { const insets = useSafeAreaInsets() return ( | DialogInnerPropsBase<{ label: string accessibilityLabelledBy?: undefined accessibilityDescribedBy?: undefined + keyboardDismissMode?: ScrollViewProps['keyboardDismissMode'] }> diff --git a/src/components/ReportDialog/index.tsx b/src/components/ReportDialog/index.tsx index f01ff3f3..6a7aa6ff 100644 --- a/src/components/ReportDialog/index.tsx +++ b/src/components/ReportDialog/index.tsx @@ -37,7 +37,9 @@ function ReportDialogInner(props: ReportDialogProps) { const isLoading = useDelayedLoading(500, isLabelerLoading) return ( - + {isLoading ? (