-
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
Attachments #16
Attachments #16
Conversation
@@ -22,6 +22,7 @@ module.exports = function (api) { | |||
}, | |||
}, | |||
], | |||
"react-native-reanimated/plugin", |
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 was missing, I followed https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/
components/ChatMessageBubble.tsx
Outdated
width: 150, | ||
height: 266, | ||
}, | ||
}); |
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.
Some fixed width and height is needed.
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.
Nice!
if (downloadResult.status !== 200) { | ||
throw new Error("Failed to download file"); | ||
} |
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.
Will the user see this error message? If not, perhaps we could print the status too?
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.
There's a try-catch where shareFile is called. But it would be good to add the status here to the error.
Image and other attachments. Video player not implemented yet, as I'm having crash issues with expo-video.