Skip to content

Commit cf9d6ec

Browse files
committed
fix(gallery-native): fix typing issue
1 parent c38265b commit cf9d6ec

File tree

1 file changed

+2
-2
lines changed
  • packages/pluggableWidgets/gallery-native/src/components

1 file changed

+2
-2
lines changed

packages/pluggableWidgets/gallery-native/src/components/Gallery.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createElement, ReactElement, ReactNode } from "react";
2-
import { Text, FlatList, Pressable, View, Platform, TouchableOpacity } from "react-native";
2+
import { Text, FlatList, Pressable, View, ViewProps, Platform, TouchableOpacity } from "react-native";
33
import { ObjectItem, DynamicValue } from "mendix";
44
import DeviceInfo from "react-native-device-info";
55
import { GalleryStyle } from "../ui/Styles";
@@ -41,7 +41,7 @@ export const Gallery = <T extends ObjectItem>(props: GalleryProps<T>): ReactElem
4141

4242
const renderItem = (item: { item: T }): ReactElement =>
4343
props.itemRenderer((children, onPress) => {
44-
const listItemWrapperProps = {
44+
const listItemWrapperProps: ViewProps = {
4545
style: isScrollDirectionVertical && { width: `${100 / numColumns}%` },
4646
testID: `${props.name}-list-item-${item.item.id}`
4747
};

0 commit comments

Comments
 (0)