diff --git a/src/index.js b/src/index.js index 45940b4..8249f1a 100644 --- a/src/index.js +++ b/src/index.js @@ -19,7 +19,7 @@ const HeatMapBlock = ({ size, value, index, colors, colorsPercentage, maximumVal return null; return ( - onBlockPress({ value, index })} style={[styles.heatMapBlock, { backgroundColor: color, width: size, height: size }, style]}> + {onBlockPress({ value, index, event })}} style={[styles.heatMapBlock, { backgroundColor: color, width: size, height: size }, style]}> ); }