Fix double padding in Dialog.InnerFlatList on web (#5986)

* remove extra padding on web

* pass prop
This commit is contained in:
Samuel Newman
2024-10-29 14:32:10 +02:00
committed by GitHub
parent 2502c91dee
commit 80c5f23da2
3 changed files with 19 additions and 12 deletions
+4 -1
View File
@@ -267,7 +267,10 @@ export const ScrollableInner = React.forwardRef<ScrollView, DialogInnerProps>(
export const InnerFlatList = React.forwardRef<
ListMethods,
ListProps<any> & {webInnerStyle?: StyleProp<ViewStyle>}
ListProps<any> & {
webInnerStyle?: StyleProp<ViewStyle>
webInnerContentContainerStyle?: StyleProp<ViewStyle>
}
>(function InnerFlatList({style, ...props}, ref) {
const insets = useSafeAreaInsets()
const {nativeSnapPoint, disableDrag, setDisableDrag} = useDialogContext()