@ua/react-native-airship
Version:
Airship plugin for React Native apps.
26 lines (24 loc) • 579 B
JavaScript
;
/**
* Airship actions.
*/
export class AirshipActions {
constructor(module) {
this.module = module;
}
/**
* Runs an Airship action.
*
* @param actionName The name of the action.
* @param actionValue The action's value.
* @return A promise that returns the action result if the action
* successfully runs, or the Error if the action was unable to be run.
*/
run(actionName, actionValue) {
return this.module.actionRun({
name: actionName,
value: actionValue
});
}
}
//# sourceMappingURL=AirshipActions.js.map