NativeScript gesture state to corresponding number


Hey. I want to use gestures in my nativescript-angular app. When I log this:

console.log("Pinch scale: " + args.scale + " state: " + args.state);

args.state gives me numbers (1,2,3), but in the docs they referred to names such as: began or cancelled. Waht is the corresponding name to each number?


Those are enums, more like constants. You can compare them like args.state === GestureStateTypes.began etc.,