mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-19 21:18:35 -04:00
* StandardCamera for large layouts * StandardCamera and main merge cleanup * Refactoring flashButton render * Adjust margins and button spacing for large layouts * Change conditionals to include screen size breakpoints * Remove redundant conditionals * Added PhotoPreview large screens landscape, styling cleanup, ios portrait mode lock on phones * Update unit test, update snapshots * Rotate icons in landscape and fix photolist direction in phones * Rotate icon function adjusted * Several fixes for orientation chages; keep camera buttons in place Orientation was not being set correctly, but given the different definitions and different values for orientation used by differe libraries, that's pretty understandable. Here's I've tried to standardize around some constants and make sure it gets set correct and variables like `isLandscapeMode` actuall have the value the claim to hold. Also redid the "no photos" state for the camera to be closer to spec, though the text rotation is quite a pain. Camera buttons should now stay in place even when the flash button appears or disappears depending on the camera in use. * Use isLargeScreen consistently * Don't track orientation change when it doesn't do anything i.e. on a phone. This was causing a crash in Android when rotating into portrait orientation. * Orientation change updates for StandardCamera * go back to supporting rotation on small devices for the icons * fixed android crash when rotating from landscape to portrait on a small device * handled FACE-UP and FACE-DOWN orientations by just not changing layout in those scenarios * Fix discard changes sheet in camera --------- Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com> Co-authored-by: Amanda Bullington <albullington@gmail.com>