Skip to content
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

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Attachments #16

merged 1 commit into from
Jan 15, 2025

Conversation

fjsj
Copy link
Member

@fjsj fjsj commented Jan 15, 2025

Image and other attachments. Video player not implemented yet, as I'm having crash issues with expo-video.

Screenshot from 2025-01-15 14-37-08

@fjsj fjsj requested a review from pamella January 15, 2025 17:38
@@ -22,6 +22,7 @@ module.exports = function (api) {
},
},
],
"react-native-reanimated/plugin",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

width: 150,
height: 266,
},
});
Copy link
Member Author

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.

Copy link
Collaborator

@pamella pamella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Comment on lines +29 to +31
if (downloadResult.status !== 200) {
throw new Error("Failed to download file");
}
Copy link
Collaborator

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?

Copy link
Member Author

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.

@fjsj fjsj merged commit c77cfa3 into main Jan 15, 2025
2 checks passed
@fjsj fjsj deleted the feat/attach branch January 15, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants