Files
iNaturalistReactNative/patches/react-native-image-picker+8.2.1.patch
Johannes Klein 89f80ab123 Migrate PhotoLibrary to TS (#3451)
* Move file

* Add type

* Destructure uri

* Update optional argument

* Add screen params interface

* Access uri from image

This is probably a functional change, but the intention behind the previous code was clear. TS revealed that there is an object of `image` though that needs to be accessed first. Have not seen any effect as to what is fixed by this.

* Add type

* Throw error when essential strings are undefined

* Add types to our package patch

* Update PhotoLibrary.tsx

* Only import what we use

* Add param property

* Type param as to what is passed in from AddObsButton

* Check for UUID and error out if not given

* Specify mandatory option

This is not a functional change because local ? x : y is used in the function and so the not branch was already executed.

* break part out into explicitly platform-specific flows
2026-03-24 01:12:49 +01:00

9.7 KiB