ajith-ab / react-native-receive-sharing-intent

A React Native plugin that enables React Native apps to receive sharing photos, videos, text, urls or any other file types from another app
MIT License
297 stars 108 forks source link

Custom group names #113

Open tallen11 opened 2 years ago

tallen11 commented 2 years ago

Adds support for supplying a custom group name in case you don't want to use the default of group.<bundle_id>. I had an existing app that I couldn't change the bundle id or group name for and so I needed this functionality. You'd use it as follows

ReceiveSharingIntent.getReceivedFiles(
      files => {
        // do something
      },
      error => alert(error),
      'com.your.bundle.id',
      'group.your.custom.name',
);

I had to reformat all the files in order to commit to the repo, so sorry about the huge diff.