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 ErrorMembers
constructor
(platforms: readonly ("ios" | "android")[], platform: string) => NativeBridgeUnsupportedPlatformErrorreadonly code
"NATIVE_PLUGIN_PLATFORM_EXCLUDED"A stable code to match on instead of the message.
readonly platforms
readonly ("ios" | "android")[]The platforms the addon does run on.