UnavailabilityError

UnavailabilityError

If you're using a method or property that's not available on the current platform, throw this error.

Constructor

new UnavailabilityError(moduleName, propertyName) → {Error}

Parameters:
Name Type Description
moduleName string

The name of the module.

propertyName string

The name of the property.

Source:
Returns:

The error.

Type
Error
Example
if (!StepCounter.startStepCounterUpdate) {
    throw new UnavailabilityError(NativeModuleName, eventName);
 }