Obsedit add photo with StandardCamera, two fixes (#1677)

* Reorder hooks dependencies

* Return uri from take photo hook

* Keep state of photos added in this instance of the camera

* List2 TS

* INatIconButton TS

* Refactor useBackPress to show discard modal only if photos taken during this instance of the camera

* Remove newPhotoCount var

* TS refactors

* fetchUserLocation TS

* Increase timeout

* Fix error

* Hoist deletePhotoByUri

* Delete photos on discard

* Reorder code

* Set saving photo on checkmark press

Closes #1556

* Update snapshots

* Remove delete test

* Create StandardCamera.test.js

* Check if image is there before deletion

* Update react-native-share-menu+6.0.0.patch

* Update e2e_ios.yml

* Update some types
This commit is contained in:
Johannes Klein
2024-06-14 14:04:24 +02:00
committed by GitHub
parent 6d553daa0b
commit 7c91bdf950
22 changed files with 317 additions and 275 deletions

View File

@@ -8,7 +8,7 @@ index 9557fdb..ebdeb6f 100644
android {
- compileSdkVersion 29
- buildToolsVersion "29.0.2"
+ compileSdkVersion 31
+ compileSdkVersion 33
+ buildToolsVersion "31.0.0"
defaultConfig {