function end() {
      if (onPressEnd != null) {
        onPressEnd(event);
      }

      if (onPressChange != null) {
        onPressChange(false);
      }
    }
Performs a transition between touchable states and identify any activations
or deactivations (and callback invocations).