achorein / expo-share-intent

🚀 Simple share intent in an Expo Native Module
MIT License
119 stars 10 forks source link

feat: retreive file mimeType from iOS #41

Closed achorein closed 3 months ago

achorein commented 3 months ago

Summary

In order to have the same file description on iOS and Android, we need to get the mimeType from the iOS part.

export interface IosShareIntentFile {
  path: string;
  type: string;
  fileName: string;
  mimeType: string;
}

export interface AndroidShareIntentFile {
  fileName: string;
  filePath: string;
  mimeType: string;
  contentUri: string;
}

Todo

Issue

https://github.com/achorein/expo-share-intent/issues/40