Skip to content

Commit 133affc

Browse files
author
Arthur Geron
authored
fix: android picker loop on refuse permission (#2130)
also would happen when dismissing modal
1 parent 8dbd9a8 commit 133affc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/AttachmentPicker/AttachmentPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export const AttachmentPicker = React.forwardRef(
304304
data={selectedPhotos}
305305
keyExtractor={(item) => item.asset.uri}
306306
numColumns={numberOfAttachmentPickerImageColumns ?? 3}
307-
onEndReached={getMorePhotos}
307+
onEndReached={photoError ? undefined : getMorePhotos}
308308
renderItem={renderAttachmentPickerItem}
309309
/>
310310
</BottomSheet>

0 commit comments

Comments
 (0)