Comments (4)
Answer is here http://stackoverflow.com/questions/38141637/react-native-send-photo-per-mail/38182998#38182998
from react-native-mail.
Can we send a video as an attachment?
from react-native-mail.
The answer @anton6 links to requires react-native-camera
, but I'm trying to use this with react-native-image-picker
and it's failing on iOS. I submitted a question on stack overflow.
https://stackoverflow.com/questions/47086300/attach-image-to-email-in-react-native
But the fundamental issue seems to be that I'm getting back a uri value that looks like this (doesn't work as the full path)...
file://var/mobile/Containers/Data/Application/983938D-5304-463C-BD05-D033E55F5BEB/Documents/images/224CA6DD-5299-48C3-A7CF-0B645004535F.jpg
Instead of something that looks like this
/Users/anton/Library/Developer/CoreSimulator/Devices/9A15F203-9A58-41C5-A4FC-EA25FAAE92BD/data/Containers/Data/Application/79FF93F9-BA89-4F4C-8809-277BEECD447D/Documents/EFFF0ECE-4063-4FE5-984E-E76506788350.jpg
which would apparently work. If anyone has a clue how to resolve this, I would appreciate it.
UPDATE
I have a working example implementation here (geirman/react-native-photo-emailer) for anyone interested. It's dated, but I expect it would still work
from react-native-mail.
+1
from react-native-mail.
Related Issues (20)
- TypeScript typings not quite right HOT 2
- In ios not opening mail HOT 3
- Android 11 Mail Attachment Is Not Working HOT 1
- accept file:// uri as path for attachment HOT 1
- New release with URI support HOT 1
- Support promises
- callback not called when activity starts
- pdf not getting attached to mail in higher version androids HOT 3
- Version in npm is not updated HOT 1
- Attachment Images is not working give uri permission error
- How to exclude Paypal from email chooser list? (Android)
- `name` does not work with Android attachments (but works on iOS)
- Does not work on IOS 14.8.1 HOT 2
- MFMailComposeViewController is not dismissing after tap cancel or send button
- not_available error in Android 11 (SDK 30) ? HOT 1
- Android 13 : Unable to launch email window and App "refreshes" HOT 6
- sending an email with attachments using 'react-native-mail' library works but didn't receive email
- Error : not_available in Android 13 with only GMail App HOT 9
- Error : not_available in Android 13 with several emailing app HOT 2
- The library sending email only if logged with gmail account (IOS) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-mail.