diff --git a/src/components/DraggableList/index.android.tsx b/src/components/DraggableList/index.android.tsx new file mode 100644 index 000000000000..30bf7c927bd9 --- /dev/null +++ b/src/components/DraggableList/index.android.tsx @@ -0,0 +1,26 @@ +import React from 'react'; +import {View} from 'react-native'; +import DraggableFlatList from 'react-native-draggable-flatlist'; +import type {FlatList} from 'react-native-gesture-handler'; +import useThemeStyles from '@hooks/useThemeStyles'; +import type {DraggableListProps} from './types'; + +function DraggableList({renderClone, shouldUsePortal, ListFooterComponent, ...viewProps}: DraggableListProps, ref: React.ForwardedRef>) { + const styles = useThemeStyles(); + return ( + + + {React.isValidElement(ListFooterComponent) && {ListFooterComponent}} + + ); +} + +DraggableList.displayName = 'DraggableList'; + +export default React.forwardRef(DraggableList); diff --git a/src/components/DraggableList/index.native.tsx b/src/components/DraggableList/index.ios.tsx similarity index 100% rename from src/components/DraggableList/index.native.tsx rename to src/components/DraggableList/index.ios.tsx diff --git a/src/components/MapView/responder/index.android.ts b/src/components/MapView/responder/index.android.ts new file mode 100644 index 000000000000..9cbcde11ca7b --- /dev/null +++ b/src/components/MapView/responder/index.android.ts @@ -0,0 +1,11 @@ +import {PanResponder} from 'react-native'; + +const InterceptPanResponderCapture = PanResponder.create({ + onStartShouldSetPanResponder: () => true, + onStartShouldSetPanResponderCapture: () => true, + onMoveShouldSetPanResponder: () => true, + onMoveShouldSetPanResponderCapture: () => true, + onPanResponderTerminationRequest: () => false, +}); + +export default InterceptPanResponderCapture;