From 9363737f78570335063dedb099a86a86a80f32c2 Mon Sep 17 00:00:00 2001 From: DanKeane Date: Thu, 15 Dec 2022 00:13:05 +0000 Subject: [PATCH] event added to block press --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]}> ); }