Commit Graph

4199 Commits

Author SHA1 Message Date
Abbey Campbell
4e18589264 move InputComponent prop to top for readability 2026-03-18 11:54:51 -07:00
Johannes Klein
fcb56d9dc1 Fix react-native-share-menu update (#3446)
* Update package-lock.json

* Update iNaturalistReactNative-ShareExtension-Bridging-Header.h
2026-03-18 15:32:35 +01:00
Seth Peterson
21349d2a4f Merge pull request #3436 from inaturalist/mob-1209-update-react-native-to-0821
MOB-1209: react native to 0.82.1
2026-03-18 07:59:22 -05:00
Johannes Klein
61bca9afaa Update changelogs 2026-03-18 09:54:36 +01:00
Johannes Klein
88ce871c1e Refactor two navigation animations to reanimated (#3440)
* Refactor FadeInOutView animation to use reanimated

* Only define the dynamic parts of the style in useAnimatedStyle

* Refactor FadeInView to use reanimated

* Only define dynamic values in useAnimatedStyle
2026-03-18 09:35:32 +01:00
Abbey Campbell
17960bcb24 rename mentions bool 2026-03-17 19:16:13 -07:00
Abbey Campbell
2216436a33 handle debounce in changeText handler rather than useEffect 2026-03-17 19:12:09 -07:00
Abbey Campbell
1b70e62ff2 clearer naming 2026-03-17 19:12:09 -07:00
Abbey Campbell
af286bd850 if no count text is defined, username should be centered 2026-03-17 19:12:09 -07:00
Abbey Campbell
4bcf4bb201 add @ mention autocomplete 2026-03-17 19:12:09 -07:00
Abbey Campbell
8832ff53ff add user search hook 2026-03-17 19:12:09 -07:00
Johannes Klein
108b974ab6 v1.0.18+203 v1.0.18+203 2026-03-17 23:25:09 +01:00
Johannes Klein
d676d527c7 Bundle update 2026-03-17 23:22:49 +01:00
sepeterson
580e3e1587 pod install 2026-03-17 16:43:03 -05:00
sepeterson
e2fe01c426 merge main 2026-03-17 16:39:26 -05:00
Ryan Stelly
793c6bb215 MOB-992 start using rolling daily logs instead of a single append-only (#3433)
* extract non-react log helpers out of custom hook

* git mv useLogs to more appropriate name / location

* update logmgmt imports, clean up getLogs

* git mv Log.js Log.tsx

* remove sharing functionality from log preview screen

* reorganize debug screen w/ headers

* refactor all Debug sections for consistency

* add rolling log config, switch existing logmgmt to 'legacy' var

* factor path out of share/email for legacy wrappers

* add 'legacy' log category in prep for showing new logs

* add legacy flag to log preview screen params

* add useLogPreview for Log screen supporting legacy and aggregated recent rolling logs

* actually support sharing the new logs w/ a tmp file of concatenated recent logs

* delete low value developer screen test

* fix double reverse and handle bad filename
2026-03-17 16:19:18 -05:00
Johannes Klein
e44211b32d Update react-native-share-menu to 7.1.2 and enable new AutoContinue controller (#3445) 2026-03-17 22:09:13 +01:00
Johannes Klein
f649545007 Replace Animated with react-native-reanimated (#3439)
* Refactor focus tap to Reanimated

Have moved the check if the focus has been tapped (!tappedCoordinates) to the view component because we anyways export the coordinates. This removes the need for the lodash import.

* Refactor LocationStatus to use Reanimated

* Only define dynamic properties in useAnimatedStyle
2026-03-17 21:14:09 +01:00
Seth Peterson
4cf8248bee Merge pull request #3443 from inaturalist/rn-picker-update
rn picker to 2.11.4
2026-03-17 13:45:26 -05:00
Seth Peterson
aca2e74b0a Merge pull request #3444 from inaturalist/mob-1247-update-react-native-worklets-core-to-latest
MOB-1247: update worklets-core
2026-03-17 12:03:45 -05:00
sepeterson
6ac3bbe143 MOB-1247: update worklets-core 2026-03-17 10:32:36 -05:00
sepeterson
dd5607b784 rn picker to 2.11.4 2026-03-17 10:00:50 -05:00
Seth Peterson
d8949fe573 Merge pull request #3442 from inaturalist/rm-excluded-archs
do not exclude arm64 for simulators
2026-03-17 09:49:11 -05:00
Johannes Klein
41584ac1a5 Restructure explore full screen experiences (#3416)
* Fix previous comment

* Add stub for ExploreFilters screen

* Create FilterModalV2.tsx

* Remove everything that is not needed from ExploreFilters stub

* Add a dummy header link to navigate to ExploreFilters V2

* Wrap ExploreFiltersContainer in Explore context provider

This is probably not what we want in the long term but there are too many errors to fix now if I don't do this.

* Replace project search modal with navigation

* Stub for an ExploreSearch screen

* Rename export

* Replace user search modal with navigation call

* Replace location search modal with navigation call

* Add function stub

* Replace location search modal with navigation call

* Update type in ExploreLocationSearch

* Copy over search UI into the new Universal Search screen

* Remove console.log

* Add params type
2026-03-17 10:44:31 +01:00
iNaturalist Crowdin Sync
b39623bd2c New Crowdin translations by GitHub Action (#3438)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2026-03-17 10:02:06 +01:00
Johannes Klein
6362fa5a48 Accuracy circle in location picker should be sized as radius = accuracy (#3406)
* Make cross hair circle size relative to map.

* Calculate the zoom level by taking into account that the crosshair circle

only fills a portion of the map, and the accuracy represents the radius not the diameter.

* Revert "Make cross hair circle size relative to map."

This reverts commit bf1e244f24.

* Listen to on map layout

* Set radius to map height ratio in state

We need this to convert accuracy to latitude delta and vice versa. We only get information for the entire map, i.e. onRegionChange latitude delta is from map top to map bottom, but we want to know the value for the cross hair circle radius.

* Add helper to calculate latitude delta to meters

* Replace meters to latitude delta calculation

* Replace accuracy estimation on map update with the more thorough calculation

* Use radius to height ratio to calculate initialRegion latitudeDelta

* Use map dimensions ratio to calculate required longitude delta

Turn out that if we give the map an initial region with latitudeDelta: 0.2 and longitudeDelta: 0.2 the latitudeDelta has no effect because longitude is on the shorter side of our map and thusly dictates the zoom.
So, specifying the zoom level based on latitude level was off a factor of width/height of the map view.

* Migrate DisplayLatLng to TS

* Remove unused typed param

* Keep the useEffect that calls initializeMap but add the new ratios

* Only use initial region when returned

This being null can happen if this function get's called before we measured the necessary ratios.

* Initial state for the region is now undefined

This is possible because we switched to initialRegion for centering the map.

* Only set new region if present

If a user presses SAVE without having changed the region on the map we just go back in navigation.

* Also show initialRegion as the text in the map

* Change to useCallback, two functions that are dependencies of a useEffect in Map

* Also use initialRegion on Android
2026-03-17 09:52:05 +01:00
Seth Peterson
92ae75cbaa Merge pull request #3430 from inaturalist/mob-1186-stub-log-the-persisted-stuff-to-see-its-size
MOB-1186: log storage metrics on startup
2026-03-16 22:26:00 -05:00
sepeterson
b871c67adb do not exclude arm64 for simulators 2026-03-16 22:14:44 -05:00
sepeterson
3a1dd8c915 MOB-1209: re-exclude arm64 2026-03-16 22:04:13 -05:00
sepeterson
7fcc42af35 MOB-1186: log storage metrics on feedback too 2026-03-16 14:11:22 -05:00
sepeterson
8669c61746 Merge branch 'main' into mob-1186-stub-log-the-persisted-stuff-to-see-its-size 2026-03-16 13:33:41 -05:00
sepeterson
aa7767b509 Revert "MOB-1209: handle promise rejections"
This reverts commit d8dde650c4.
2026-03-16 13:29:51 -05:00
sepeterson
fbc649d7fd MOB-1186: log NA if no realm or log files 2026-03-16 11:17:15 -05:00
sepeterson
edc4cfeba0 Merge branch 'mob-1209-update-react-native-to-0821' of https://github.com/inaturalist/iNaturalistReactNative into mob-1209-update-react-native-to-0821 2026-03-16 11:14:16 -05:00
sepeterson
d8dde650c4 MOB-1209: handle promise rejections 2026-03-16 11:10:08 -05:00
Seth Peterson
72fe926bfe Merge pull request #3437 from inaturalist/update-react-native-0.82.1
Additional changes to update to react-native 0.82.1
2026-03-16 10:40:24 -05:00
sepeterson
7318851924 MOB-1209: merge back 2026-03-16 09:07:00 -05:00
sepeterson
21e3a46606 MOB-1209: merge back 2026-03-15 22:25:29 -05:00
Johannes Klein
3b9cc711f3 Also wrap children in a container if a RotatableIcon is not supposed to rotate (#3435)
This repairs a bug introduced with PR #3404 by repairing previous behaviour of always having a container that get's styled with the container class.
2026-03-14 12:47:33 +01:00
Johannes Klein
143dfc9ae6 Smaller project icon (#3434)
* Change size of project icon

For a project.icon image we can only query for a 70x70px image (or a 1024x1024). So let's just display something closer to the image we receive so that it is not too blurry.

* Remove dead code
2026-03-14 00:14:35 +01:00
sepeterson
9608a3c934 MOB-1209: pod install 2026-03-13 16:23:13 -05:00
sepeterson
4ae2208444 merge main 2026-03-13 16:21:18 -05:00
sepeterson
6a1fbcaaa8 MOB-1209: android building 2026-03-13 16:00:26 -05:00
sepeterson
363b50404a MOB-1209: rm excluded architecture for the share sheet 2026-03-13 14:04:40 -05:00
Abbey Campbell
2972c8b3a4 Merge pull request #3432 from inaturalist/mob-725-reset-password-form-field-obscured-by-keyboard
Mob 725 reset password form field obscured by keyboard
2026-03-13 10:44:46 -07:00
sepeterson
bea953d253 MOB-1209: flow error in rn node_module 2026-03-13 10:13:48 -05:00
sepeterson
311fe704d5 MOB-1209: rn 0.82.1 first pass, building on ios device 2026-03-13 10:13:06 -05:00
Abbey Campbell
41f66ecf3c Merge pull request #3427 from inaturalist/mob-1234-upgrade-react-native-reanimated-to-latest-version-and-fix
Mob 1234 upgrade react native reanimated to latest version and fix
2026-03-12 16:22:43 -07:00
Johannes Klein
ae2d6236bc Update rozenite packages to v1.4 (#3428)
* Update package.json

* Update package-lock.json
2026-03-13 00:14:46 +01:00
Abbey Campbell
1a7faba1d9 remove eslint-disables 2026-03-12 15:15:08 -07:00