react-native-share-menu icon indicating copy to clipboard operation
react-native-share-menu copied to clipboard

Text File Sharing

Open brohna opened this issue 4 years ago • 3 comments

Whenever I try and share a .txt file the share handle does not go through, leaving the sharedData null. This problem is consistent in the example as well I believe. Is there a safe way of sharing text files?

brohna avatar Oct 13 '20 01:10 brohna

Would also like to know the answer here.

ghost avatar Oct 22 '21 16:10 ghost

i am looking for this problem too. any solution? it shows

{
 data: null,
 mimeType: 'text/plain'

}

prieyudaarvis avatar Oct 21 '22 07:10 prieyudaarvis

remove the clause to call self.storeText from line 85-86 in ShareViewController.swift

I think this is meant to capture clipboard text, but it breaks text files, so choose which you want to support (sorry I am not smart enough to work out how to support both right now.)

same for android: remove the clauses in ShareMenuModule.java which test for "text/plain" type

stefoid avatar Apr 04 '24 04:04 stefoid