Keep the composer image selector open after choosing an image

zio/stable
Paul Frazee 2023-01-18 14:47:59 -06:00
parent d0364c09ad
commit 1898d5dbaa
1 changed files with 3 additions and 1 deletions

View File

@ -105,8 +105,10 @@ export const ComposePost = observer(function ComposePost({
}
const onSelectPhotos = (photos: string[]) => {
setSelectedPhotos(photos)
if (photos.length >= 4) {
setIsSelectingPhotos(false)
}
}
const onChangeText = (newText: string) => {
setText(newText)