-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add ability to upload images to conversations #555
Conversation
Pull Request Test Coverage Report for Build 9129114448Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems good, though I have little familiarity with the react-native-sdk. Nice job working through the unit tests. It's a PITA when you can't reproduce locally
@@ -16,7 +16,7 @@ jobs: | |||
- uses: actions/checkout@v2 | |||
- uses: actions/setup-node@v1 | |||
with: | |||
node-version: 14 | |||
node-version: 18 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Man we still have however many repos on node 16 or earlier. Waiting for AWS to just pull that rug out from under us.
src/hooks/Circles/usePrivatePosts.ts
Outdated
type: { | ||
JPEG: AttachmentType.IMAGE, | ||
JPG: AttachmentType.IMAGE, | ||
PNG: AttachmentType.IMAGE, | ||
GIF: AttachmentType.IMAGE, | ||
}[fileType], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel like I'm missing something, couldn't this just be
type: { | |
JPEG: AttachmentType.IMAGE, | |
JPG: AttachmentType.IMAGE, | |
PNG: AttachmentType.IMAGE, | |
GIF: AttachmentType.IMAGE, | |
}[fileType], | |
type: AttachmentType.IMAGE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're not missing anything. This is a relic of an earlier iteration. I originally was trying to add videos too but it had some issues and I wanted to move on and nobody was asking for video uploads.
} | ||
{...({ | ||
// accessoryStyle overrides are not documented but are supported | ||
accessoryStyle: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fun.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This turned out to be quite the task. Everything looks good to me!
Only NIT: I feel like the photos would look better without being within a message bubble. |
I think this is possible. I'll play with it and put a followup PR up if I can get it working well. |
🎉 This PR is included in version 12.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Changes
Screenshots
messaging-images.mov