From 251f6a92a9ffc4be22e4d69d9572134e00fc3115 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Tue, 18 Jan 2022 15:25:02 -0800 Subject: [PATCH] Filter onClick from button props --- src/button/Button.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/button/Button.jsx b/src/button/Button.jsx index 08a6ea7..fcf781a 100644 --- a/src/button/Button.jsx +++ b/src/button/Button.jsx @@ -36,6 +36,7 @@ export const Button = forwardRef( children, onPress, onPressStart, + onClick, // Use onPress instead of onClick ...rest }, ref