Supported on Android and iOS targets

Open the share file dialog

The share file component provides a native interface for users to share files using their device’s sharing options.

val file = PlatformFile("/path/to/file.txt")
FileKit.shareFile(file)

Ensure the file you are sharing exists and is accessible. Sharing a non-existent file will result in an error.