-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[NEW] Send multiple attachments #2162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
8810543
[CHORE] Update react-native-image-crop-picker
djorkaeffalexandre 10e549e
[CHORE] Update rn-extensions-share (2.4.0-rc.0)
djorkaeffalexandre 0144565
[IMPROVEMENT] withoutServersView -> showErrorAlert
djorkaeffalexandre 093efff
[TEMP] Cherry pick first item
djorkaeffalexandre 0820d0c
[CHORE] Update rn-extensions-share (2.4.0-rc.1)
djorkaeffalexandre 3f33779
[IMPROVEMENT] Remove some fetch-blob uses
djorkaeffalexandre 2748591
[WIP] Initial send multiple files logic
djorkaeffalexandre 264aef4
[WIP] Made images switchable
djorkaeffalexandre 073832f
[WIP] Some share extension improvements
djorkaeffalexandre 41ef5a9
[WIP] Add error styles
djorkaeffalexandre 5bbb106
[WIP] Sending multiple files
djorkaeffalexandre a960723
[WIP] Add video thumbnails
djorkaeffalexandre 6a733d6
[WIP] Show video component
djorkaeffalexandre 31c09a0
[WIP] Share text
djorkaeffalexandre 2af59b8
[WIP] Send text message (Share Extension)
djorkaeffalexandre fa14705
[WIP] Show list just when have more than one attachment
djorkaeffalexandre 88a91f7
[WIP] Refactor code
djorkaeffalexandre c276153
[WIP] Add some comments
djorkaeffalexandre fb9feb5
[WIP] Fix thumbs height
djorkaeffalexandre a07e6d8
[WIP] Improve get thumbnail logic
djorkaeffalexandre c318c8b
Merge branch 'develop' into new.multiple-files
diegolmello 57ec0ae
Header
diegolmello 3c8c16e
Dynamic image component on ImageViewer
diegolmello 2108f10
Few fixes
diegolmello 97bf4ef
Header
diegolmello fa6ff9a
Use React.Component
diegolmello dff70e5
Fix user re-render using selector
diegolmello 5c573dd
Fix header text color
diegolmello 12eee87
Multiple files android
diegolmello 3f083f9
Update rn-extensions-share ios
diegolmello 26710b9
Stash
diegolmello 669750e
Header
diegolmello b9c30cc
Set bottomViewColor equals to Thumbs when attachments > 1
diegolmello 5a82237
Messagebox sCU
diegolmello 274ca39
ImagePreview
diegolmello dd6d17d
Overflow hidden on MessageImage
diegolmello 191c098
AttachmentView tweaks
diegolmello 9c18ed7
lint
diegolmello 592b56f
Refactoring remove button
diegolmello 3dc3178
Thumb button
diegolmello 251bf3c
Remove item
diegolmello 2c496a0
Remove Thumbs background
diegolmello 4184a98
Video preview and thumb
diegolmello 4049493
File preview
diegolmello 07622db
One description per thumb
diegolmello 4e73c6c
Key extractor
diegolmello 325d850
Call ShareView on take photo/video
diegolmello 2747a95
Remove UploadModal
diegolmello 84bcb07
Messagebox sCU
diegolmello 564507c
isActionsEnabled on Messagebox
diegolmello 0bd6723
Apply DimensionsContext on share extension
diegolmello ceb4ac7
Send text
diegolmello 398733a
Minor fix for read only
diegolmello c817e54
Read only on ShareView
diegolmello 6803b51
Fix threads
diegolmello b0d4089
Fix ref when using withActionSheet
diegolmello f073faf
Handle description
diegolmello 25aaa40
typing and key tracking
diegolmello 3620459
Unnecessary getCustomEmoji implementation
diegolmello 669c05c
Fix empty filenames
diegolmello 1afe6a0
Fix tablet
diegolmello 8f554a2
Prevent unnecessary render
diegolmello 87af8da
Minor refactor
diegolmello 376267e
Stop showing preview when image is too big
diegolmello 02e92f7
Fix avatar
diegolmello c0b8b78
Fix type icon
diegolmello c9712f1
Remove first animation from share extension
diegolmello b57e192
Apply theme on read only text
diegolmello e2c8799
Fix remove file logic
diegolmello 9cc6938
shareExtension -> isShareExtension
diegolmello be00f7f
Remove error logic from ShareListView
diegolmello 8b1135d
Minor fix for omnichannel icon
diegolmello 635e4c4
Can upload logic
diegolmello 2b7163c
Fix Android permission
diegolmello b0def4c
Preview 3MB
diegolmello 7693629
Few fixes
diegolmello File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,28 @@ | ||
| import React from 'react'; | ||
| import PropTypes from 'prop-types'; | ||
| import { View } from 'react-native'; | ||
|
|
||
| import { CancelEditingButton, ActionsButton } from './buttons'; | ||
| import styles from './styles'; | ||
|
|
||
| const LeftButtons = React.memo(({ | ||
| theme, showMessageBoxActions, editing, editCancel | ||
| theme, showMessageBoxActions, editing, editCancel, isActionsEnabled | ||
| }) => { | ||
| if (editing) { | ||
| return <CancelEditingButton onPress={editCancel} theme={theme} />; | ||
| } | ||
| return <ActionsButton onPress={showMessageBoxActions} theme={theme} />; | ||
| if (isActionsEnabled) { | ||
| return <ActionsButton onPress={showMessageBoxActions} theme={theme} />; | ||
| } | ||
| return <View style={styles.buttonsWhitespace} />; | ||
| }); | ||
|
|
||
| LeftButtons.propTypes = { | ||
| theme: PropTypes.string, | ||
| showMessageBoxActions: PropTypes.func.isRequired, | ||
| editing: PropTypes.bool, | ||
| editCancel: PropTypes.func.isRequired | ||
| editCancel: PropTypes.func.isRequired, | ||
| isActionsEnabled: PropTypes.bool | ||
| }; | ||
|
|
||
| export default LeftButtons; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.