react-native-mail icon indicating copy to clipboard operation
react-native-mail copied to clipboard

custom mime types

Open aidanw opened this issue 5 years ago • 2 comments

Is it possible to just pass through a string for the mime types so I don't have to use the limited ones hard coded in the app?

aidanw avatar May 01 '19 15:05 aidanw

It's worth noting that using a type like "txt" or "text/plain" will result in a crash on iOS. Be careful to only use the types listed here: https://github.com/chirag04/react-native-mail/blob/master/RNMail/RNMail.m

smdjeff avatar May 08 '19 15:05 smdjeff

@smdjeff I have just created a PR to avoid this crash and correctly report the error to Javascript layers: https://github.com/chirag04/react-native-mail/pull/141

charlyBerthet avatar Nov 10 '19 12:11 charlyBerthet