Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const nativeBrushMixin = (base) => class VictoryNativeSelectionContainer extends base { // eslint-disable-line max-len
// assign native specific defaultProps over web `VictoryBrushContainer` defaultProps
static defaultProps = {
...VictoryBrushContainer.defaultProps,
brushComponent: ,
handleComponent:
};
// overrides all web events with native specific events
static defaultEvents = (props) => {
return [{
target: "parent",
eventHandlers: {
onTouchStart: (evt, targetProps) => {
if (props.disable) {
return {};
}
BrushHelpers.onMouseMove.cancel();
return BrushHelpers.onMouseDown(evt, targetProps);
},