C

NativeBridgeUnsupportedPlatformError

Thrown when the host platform is not one the addon runs on, by its manifest or the handlers given to definePlatform.

class NativeBridgeUnsupportedPlatformError extends Error

Members

constructor(platforms: readonly ("ios" | "android")[], platform: string) => NativeBridgeUnsupportedPlatformError
readonly code"NATIVE_PLUGIN_PLATFORM_EXCLUDED"

A stable code to match on instead of the message.

readonly platformsreadonly ("ios" | "android")[]

The platforms the addon does run on.