Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const nativeCursorMixin = (base) => class VictoryNativeCursorContainer extends base {
static displayName = "VictoryCursorContainer";
// assign native specific defaultProps over web `VictoryCursorContainer` defaultProps
static defaultProps = {
...VictoryCursorContainer.defaultProps,
cursorLabelComponent: ,
cursorComponent:
};
// overrides all web events with native specific events
static defaultEvents = (props) => {
return [{
target: "parent",
eventHandlers: {
onTouchStart: (evt, targetProps) => {
return props.disable ? {} : CursorHelpers.onMouseMove(evt, targetProps);
},
onTouchMove: (evt, targetProps) => {
return props.disable ? {} : CursorHelpers.onMouseMove(evt, targetProps);
},
onTouchEnd: (evt, targetProps) => {
onTouchMove: (evt, targetProps) => {
return props.disable ? {} : CursorHelpers.onMouseMove(evt, targetProps);
},
onTouchEnd: (evt, targetProps) => {
onTouchEnd: (evt, targetProps) => {
return props.disable ? {} : CursorHelpers.onTouchEnd(evt, targetProps);
}
}