Skip to content

Commit

Permalink
fix(#27): Rerender list of cameras when number of columns changed
Browse files Browse the repository at this point in the history
Closes #27
  • Loading branch information
piwko28 committed Oct 16, 2024
1 parent 05cbf96 commit 54cd5da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions views/cameras-list/CamerasList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export const CamerasList: NavigationFunctionComponent = ({componentId}) => {
renderItem={({item}) => (
<CameraTile cameraName={item} componentId={componentId} />
)}
key={numColumns}
keyExtractor={cameraName => cameraName}
numColumns={numColumns}
refreshControl={<Refresh refreshing={loading} onRefresh={refresh} />}
Expand Down

0 comments on commit 54cd5da

Please sign in to comment.