Preparing search index...

    Function isTemporaryImageUri

    • Determines if an image URI points to a temporary location

      Returns true when the URI does not reside inside the app's permanent storage directory (documents/Recipedia). Useful to know whether an image still lives in a cache (ImageManipulator, camera, etc.) and needs to be persisted.

      Parameters

      • uri: string

        Image URI to check

      Returns boolean

      True if the URI is temporary (cache/manipulator/camera), false if stored permanently

      const isTemp = isTemporaryImageUri('file:///cache/ImageManipulator/123.jpg');