couch-kit
    Preparing search index...

    Function useExtractAssets

    • Extracts bundled web assets from the APK to the filesystem so the native HTTP server can serve them.

      On Android, assets live inside the APK and cannot be served directly by a native HTTP server. This hook copies each file listed in the manifest from asset:///www/<file> to <Paths.document>/www/<file>.

      On iOS, assets are accessible from the bundle directory, so extraction is skipped and staticDir is returned as undefined (the server falls back to the bundle path).

      Parameters

      • manifest: AssetManifest

        The asset manifest generated by couch-kit bundle. Contains a files array listing all relative paths.

      Returns ExtractAssetsResult