From 2e36f5616e65cf8d9cfca1b9d78708792b7ac39d Mon Sep 17 00:00:00 2001 From: Michael Hamami Date: Thu, 25 Apr 2024 10:50:14 +0300 Subject: [PATCH] fix: #98 remove console log --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3cbb1c8..8d62d8f 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ export default class Toast extends Component { show(text, duration, callback, onPress) { this.duration = typeof duration === 'number' ? duration : DURATION.LENGTH_SHORT; this.callback = callback; - console.log(typeof onPress) + if(typeof onPress === 'function') this.onPress = onPress this.setState({