diff --git a/demo/src/screens/componentScreens/SortableListScreen.tsx b/demo/src/screens/componentScreens/SortableListScreen.tsx index cf5d696318..5657131926 100644 --- a/demo/src/screens/componentScreens/SortableListScreen.tsx +++ b/demo/src/screens/componentScreens/SortableListScreen.tsx @@ -28,7 +28,8 @@ const SortableListScreen = () => { } else { setSelectedItems(selectedItems.concat(item)); } - }, [selectedItems, setSelectedItems]); + }, + [selectedItems, setSelectedItems]); const addItem = useCallback(() => { if (removedItems.length > 0) { @@ -74,17 +75,30 @@ const SortableListScreen = () => { ); - }, [selectedItems, toggleItemSelection]); + }, + [selectedItems, toggleItemSelection]); return ( {renderHeader('Sortable List', {'margin-10': true})}