We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1fd012 commit 090e6e8Copy full SHA for 090e6e8
1 file changed
packages/react-native-sortables/src/components/SortableGrid.tsx
@@ -64,6 +64,12 @@ function SortableGrid<I>(props: SortableGridProps<I>) {
64
if (!isVertical && !rowHeight) {
65
throw error('rowHeight is required for horizontal Sortable.Grid');
66
}
67
+ if (columns !== undefined && columns < 1) {
68
+ throw error('columns must be greater than 0');
69
+ }
70
+ if (rows !== undefined && rows < 1) {
71
+ throw error('rows must be greater than 0');
72
73
74
const columnGapValue = useAnimatableValue(columnGap);
75
const rowGapValue = useAnimatableValue(rowGap);
0 commit comments