Skip to content

Feature Request: Support for modern expo-file-system API (Expo SDK 54+) #803

@Killer-Bee1

Description

@Killer-Bee1

Summary

The @powersync/attachments package currently requires the legacy expo-file-system API due to how AbstractAttachmentQueue constructs and passes file paths to StorageAdapter methods. This makes it incompatible with Expo SDK 54+'s modern file system API without workarounds.

Background

As of Expo SDK 54, the new object-based expo-file-system API (File, Directory, Paths) is now stable and the default. The legacy API has been moved to expo-file-system/legacy.

The Problem

AbstractAttachmentQueue builds full URI strings and passes them to StorageAdapter methods:

// AbstractAttachmentQueue.ts
getLocalUri(filePath: string): string {
return ${this.storage.getUserStorageDirectory()}/${filePath};
// Returns: "file:///var/mobile/.../Documents/attachments/abc.jpg"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions