Gallery Improvements (#4837)

* Open/Close Gallery transitions

* Include postId in file info & disable opening the gallery in some cases

* Add progress bar component

* Transition to gallery based on platform

* Improve getting the filename for non attachments

* Patch RNFetchBlob TS definition

* Add gallery types

* fix unit tests for message and post attachment

* add getLocalPath method

* Add react-native-share dependency

* Re-style gallery footer

* Refactor Gallery screen

* Double tap zoom in/out and translate

* Make android activity "transparent"

* Do not animate to height on dismissing gallery

* Open gallery for file uploads

* Fix borderRadius for gallery action button

* Use progress bar for file uploads

* Replace progress bar for file attachment document

* Upgrade RNN to 7.1.0 to fix share elements transitions

* Fix Gallery unit tests

* translate down when popping screen on iOS

* Swipe, Pan & Tap fixes

* fix gallery footer avatar eslint

* Fix gallery snapshot tests

* Use CompassIcon in Gallery

* Feedback from UX review

* Fix gallery UI for other file types

* Set other file type gallery button to 48pt
This commit is contained in:
Elias Nahum
2020-11-06 21:17:27 -03:00
committed by GitHub
parent b05b797b06
commit dbd7bc8a51
105 changed files with 4077 additions and 4037 deletions

View File

@@ -38,7 +38,6 @@
"react-native-animatable": "1.3.3",
"react-native-button": "3.0.1",
"react-native-calendars": "1.403.0",
"react-native-circular-progress": "1.3.6",
"react-native-cookies": "github:mattermost/react-native-cookies#b35bafc388ae09c83bd875e887daf6a0755e0b40",
"react-native-device-info": "7.0.2",
"react-native-document-picker": "4.0.0",
@@ -49,7 +48,6 @@
"react-native-gesture-handler": "1.8.0",
"react-native-haptic-feedback": "1.11.0",
"react-native-hw-keyboard-event": "0.0.4",
"react-native-image-gallery": "github:mattermost/react-native-image-gallery#c1a9f7118e90cc87d47620bc0584c9cac4b0cf38",
"react-native-image-picker": "2.3.4",
"react-native-keyboard-aware-scrollview": "2.1.0",
"react-native-keyboard-tracking-view": "5.7.0",
@@ -58,15 +56,17 @@
"react-native-local-auth": "1.6.0",
"react-native-localize": "1.4.2",
"react-native-mmkv-storage": "0.3.7",
"react-native-navigation": "6.12.2",
"react-native-navigation": "7.1.0",
"react-native-notifications": "2.1.7",
"react-native-passcode-status": "1.1.2",
"react-native-permissions": "2.2.2",
"react-native-reanimated": "1.13.1",
"react-native-redash": "14.2.4",
"react-native-safe-area": "0.5.1",
"react-native-safe-area-context": "3.1.8",
"react-native-screens": "2.11.0",
"react-native-section-list-get-item-layout": "2.2.3",
"react-native-share": "3.8.1",
"react-native-slider": "0.11.0",
"react-native-status-bar-size": "0.3.3",
"react-native-svg": "12.1.0",
@@ -108,9 +108,13 @@
"@types/moment-timezone": "0.5.30",
"@types/react": "16.9.53",
"@types/react-native": "0.63.30",
"@types/react-native-share": "3.3.0",
"@types/react-native-video": "5.0.3",
"@types/react-redux": "7.1.9",
"@types/react-test-renderer": "16.9.3",
"@types/shallow-equals": "1.0.0",
"@types/tinycolor2": "1.4.2",
"@types/url-parse": "1.4.3",
"@typescript-eslint/eslint-plugin": "3.10.1",
"@typescript-eslint/parser": "3.10.1",
"babel-eslint": "10.1.0",