react-awesome-button icon indicating copy to clipboard operation
react-awesome-button copied to clipboard

Fixed #69

Open pierreericgarcia opened this issue 4 years ago • 0 comments

next is actually the second parameter of the onPress callback function !

As pointed out in the issue 69, when we try to use the next function in the onPress callback we get an error : next is not a function. Because the first argument of the onPress callback function is actually a ref !

As we can at the line 160 of the file components/AwesomeButtonProgress/index.js :

action(this.content, this.endLoading.bind(this));

The next function is actually the second argument ! As it would be a breaking change to swap the argument order I propose to update the documentation which is misleading.

pierreericgarcia avatar Nov 09 '21 17:11 pierreericgarcia