Preparing search index...

    Function takeSharedImport

    • Reads what was shared with the app, maps it to an import action and clears it, so each share is handled once.

      Only a photo is resolved and moved to the app cache, since clearing the share deletes the file expo-sharing resolved; a link is handed to the scraper as is.

      Returns Promise<SharedImport | undefined>

      The import action, or undefined when nothing was shared

      const sharedImport = await takeSharedImport();